Class Cube
- java.lang.Object
-
- ejava.examples.orm.inheritance.annotated.BaseObject
-
- ejava.examples.orm.inheritance.annotated.Shape
-
- ejava.examples.orm.inheritance.annotated.Rectangle
-
- ejava.examples.orm.inheritance.annotated.Cube
-
@Entity public class Cube extends Rectangle
This class provides an attempt to re-define the JOIN InheritanceType of the parent class to a TABLE_PER_CLASS type. If you look closly at the database, this instruction is ignored and the Cube sub-table is JOINED with the parent class tables to form the object instead.
-
-
Field Summary
Fields Modifier and Type Field Description private int
depth
-
Constructor Summary
Constructors Constructor Description Cube()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDepth()
void
setDepth(int depth)
String
toString()
-
Methods inherited from class ejava.examples.orm.inheritance.annotated.Rectangle
getHeight, getName, getWidth, setHeight, setWidth
-
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
-
-