Class BaseObject
- java.lang.Object
-
- ejava.examples.orm.inheritance.annotated.BaseObject
-
- Direct Known Subclasses:
Album
,Shape
,ToothPaste
@MappedSuperclass public abstract class BaseObject extends Object
This class provides an example of a non-entity base class that can be mapped into tables defined by entities that derive from this class.
-
-
Constructor Summary
Constructors Constructor Description BaseObject()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long
getId()
abstract String
getName()
long
getVersion()
protected void
setId(long id)
void
setVersion(long version)
String
toString()
-