Class TablePerClassSubclassTestEntity
java.lang.Object
org.fastnate.generator.test.inheritance.TablePerClassSuperclassTestEntity
org.fastnate.generator.test.inheritance.TablePerClassSubclassTestEntity
- All Implemented Interfaces:
SubclassEntity,SuperclassEntity
@Entity
public class TablePerClassSubclassTestEntity
extends TablePerClassSuperclassTestEntity
implements SubclassEntity
Test class that ensures that an entity hierarchy with
InheritanceType.SINGLE_TABLE is written correctly.- Author:
- Tobias Liefke
-
Constructor Summary
ConstructorsConstructorDescriptionTablePerClassSubclassTestEntity(long id, String name, String description) Creates a new instance ofTablePerClassSubclassTestEntity. -
Method Summary
Modifier and TypeMethodDescriptionThe description of the entity, defined in the sub class in the entity hierarchy.voidsetDescription(String description) Methods inherited from class org.fastnate.generator.test.inheritance.TablePerClassSuperclassTestEntity
equals, getId, getName, getSuperProperty, hashCode, setName, setSuperProperty, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.fastnate.generator.test.inheritance.SuperclassEntity
getName, getSuperProperty
-
Constructor Details
-
TablePerClassSubclassTestEntity
Creates a new instance ofTablePerClassSubclassTestEntity.- Parameters:
id- the id of the entity, as identity generation is not supported for this type of inheritancename- saved inTablePerClassSuperclassTestEntitydescription- saved in this class
-
TablePerClassSubclassTestEntity
public TablePerClassSubclassTestEntity()
-
-
Method Details
-
getDescription
Description copied from interface:SubclassEntityThe description of the entity, defined in the sub class in the entity hierarchy.- Specified by:
getDescriptionin interfaceSubclassEntity- Returns:
- the description
-
setDescription
-