Class TablePerClassSuperclassTestEntity
java.lang.Object
org.fastnate.generator.test.inheritance.TablePerClassSuperclassTestEntity
- All Implemented Interfaces:
SuperclassEntity
- Direct Known Subclasses:
TablePerClassSubclassTestEntity
The superclass of
TablePerClassSubclassTestEntity to test InheritanceType.TABLE_PER_CLASS.- Author:
- Tobias Liefke
-
Constructor Summary
ConstructorsConstructorDescriptionTablePerClassSuperclassTestEntity(long id, String name) Creates a new instance ofTablePerClassSuperclassTestEntity. -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()getName()The name of the entity, defined in the root class of the entity hierarchy.The property that was defined inMappedSuperclassTestEntity.inthashCode()voidvoidsetSuperProperty(String superProperty) toString()
-
Constructor Details
-
TablePerClassSuperclassTestEntity
Creates a new instance ofTablePerClassSuperclassTestEntity.- Parameters:
id- the id of the entity, as identity generation is not supported for this type of inheritancename- the name of the new entity
-
TablePerClassSuperclassTestEntity
public TablePerClassSuperclassTestEntity()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
getId
public long getId() -
getName
Description copied from interface:SuperclassEntityThe name of the entity, defined in the root class of the entity hierarchy.- Specified by:
getNamein interfaceSuperclassEntity- Returns:
- the name
-
setName
-
getSuperProperty
Description copied from interface:SuperclassEntityThe property that was defined inMappedSuperclassTestEntity.- Specified by:
getSuperPropertyin interfaceSuperclassEntity- Returns:
- the super property
-
setSuperProperty
-