Class JoinedSubclassTestEntity
java.lang.Object
org.fastnate.generator.test.inheritance.MappedSuperclassTestEntity<String>
org.fastnate.generator.test.inheritance.JoinedSuperclassTestEntity
org.fastnate.generator.test.inheritance.JoinedSubclassTestEntity
- All Implemented Interfaces:
SubclassEntity,SuperclassEntity
@Entity
public class JoinedSubclassTestEntity
extends JoinedSuperclassTestEntity
implements SubclassEntity
Test class that ensures that an entity hierarchy with
InheritanceType.JOINED is written correctly.- Author:
- Tobias Liefke
-
Constructor Summary
ConstructorsConstructorDescriptionJoinedSubclassTestEntity(String name, String description, String superProperty) Creates a new instance ofJoinedSubclassTestEntity. -
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.JoinedSuperclassTestEntity
getName, getSubReference, getSuperReference, setName, setSubReference, setSuperReference, toStringMethods inherited from class org.fastnate.generator.test.inheritance.MappedSuperclassTestEntity
equals, getGenericProperty, getId, getSuperProperty, hashCode, setGenericProperty, setSuperPropertyMethods 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
-
JoinedSubclassTestEntity
Creates a new instance ofJoinedSubclassTestEntity.- Parameters:
name- saved inJoinedSuperclassTestEntitydescription- saved in this classsuperProperty- saved inMappedSuperclassTestEntityand written to the table ofJoinedSuperclassTestEntity
-
JoinedSubclassTestEntity
public JoinedSubclassTestEntity()
-
-
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
-