@Entity public class ViewEntity extends Object
| Constructor and Description |
|---|
ViewEntity() |
ViewEntity(StoryEntity story,
Date viewDate)
Creates a new instance of
ViewEntity. |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getId()
Return the ID of the view.
|
StoryEntity |
getStory()
Return the StoryEntity associated with this view.
|
Date |
getViewDate()
Return the date when the StoryEntity was viewed.
|
public ViewEntity()
public ViewEntity(StoryEntity story, Date viewDate)
ViewEntity.story - story identifies the StoryEntity. This parameter must be a non null.viewDate - date when the StoryEntity was viewed. This parameter must be a non null.IllegalArgumentException - if value provided for any parameter is null.public Integer getId()
public StoryEntity getStory()
public Date getViewDate()
Copyright © 2023. All rights reserved.