Class Circle
- java.lang.Object
-
- ejava.examples.orm.inheritance.annotated.BaseObject
-
- ejava.examples.orm.inheritance.annotated.Shape
-
- ejava.examples.orm.inheritance.annotated.Circle
-
@Entity public class Circle extends Shape
This class provides an example of an entity sub-class that is part of a mixed strategy of inheritance. The root base class is a non-entity and the immediate base class uses a join table strategy. That means that a table will be created to hold the unque properties of this class and joined with the parent table.
-
-
Field Summary
Fields Modifier and Type Field Description private int
radius
-
Constructor Summary
Constructors Constructor Description Circle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
int
getRadius()
void
setRadius(int radius)
String
toString()
-
Methods inherited from class ejava.examples.orm.inheritance.annotated.Shape
getId, getPosx, getPosy, setId, setPosx, setPosy
-
Methods inherited from class ejava.examples.orm.inheritance.annotated.BaseObject
getVersion, setVersion
-
-