Class Album
- java.lang.Object
-
- ejava.examples.orm.inheritance.annotated.BaseObject
-
- ejava.examples.orm.inheritance.annotated.Album
-
@Entity public class Album extends BaseObject
This class provides an example of inheriting from a non-entity base class. In this case, the base class is mapped into the Album table. We physically map the parent properties into table colums here.- See Also:
class for a sibling example that will accept the parent mapping defaults.
-
-
Constructor Summary
Constructors Constructor Description Album()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetArtist()longgetId()StringgetName()StringgetTitle()voidsetArtist(String artist)protected voidsetId(long id)voidsetTitle(String title)StringtoString()-
Methods inherited from class ejava.examples.orm.inheritance.annotated.BaseObject
getVersion, setVersion
-
-
-
-
Method Detail
-
getId
public long getId()
- Overrides:
getIdin classBaseObject
-
setId
protected void setId(long id)
- Overrides:
setIdin classBaseObject
-
getArtist
public String getArtist()
-
setArtist
public void setArtist(String artist)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getName
public String getName()
- Specified by:
getNamein classBaseObject
-
toString
public String toString()
- Overrides:
toStringin classBaseObject
-
-