Class Rectangle
- java.lang.Object
-
- ejava.examples.orm.inheritance.annotated.BaseObject
-
- ejava.examples.orm.inheritance.annotated.Shape
-
- ejava.examples.orm.inheritance.annotated.Rectangle
-
- Direct Known Subclasses:
Cube
@Entity public class Rectangle 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.
-
-
Constructor Summary
Constructors Constructor Description Rectangle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHeight()
String
getName()
int
getWidth()
void
setHeight(int height)
void
setWidth(int width)
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
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in classBaseObject
-
getHeight
public int getHeight()
-
setHeight
public void setHeight(int height)
-
getWidth
public int getWidth()
-
setWidth
public void setWidth(int width)
-
-