Class JoinedSuperclassTestEntity
java.lang.Object
org.fastnate.generator.test.inheritance.MappedSuperclassTestEntity<String>
org.fastnate.generator.test.inheritance.JoinedSuperclassTestEntity
- All Implemented Interfaces:
SuperclassEntity
- Direct Known Subclasses:
JoinedSubclassTestEntity
@Entity
public class JoinedSuperclassTestEntity
extends MappedSuperclassTestEntity<String>
implements SuperclassEntity
The superclass of
JoinedSubclassTestEntity to test InheritanceType.JOINED.- Author:
- Tobias Liefke
-
Constructor Summary
ConstructorsConstructorDescriptionJoinedSuperclassTestEntity(String name, String superProperty) Creates a new instance ofJoinedSuperclassTestEntity. -
Method Summary
Modifier and TypeMethodDescriptiongetName()The name of the entity, defined in the root class of the entity hierarchy.voidvoidsetSubReference(JoinedSubclassTestEntity subReference) voidsetSuperReference(JoinedSuperclassTestEntity superReference) toString()Methods 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
getSuperProperty
-
Constructor Details
-
JoinedSuperclassTestEntity
Creates a new instance ofJoinedSuperclassTestEntity.- Parameters:
name- the name of the new entitysuperProperty- the property for the mapped superclass that is saved in our table
-
JoinedSuperclassTestEntity
public JoinedSuperclassTestEntity()
-
-
Method Details
-
toString
- Overrides:
toStringin classMappedSuperclassTestEntity<String>
-
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
-
getSuperReference
-
getSubReference
-
setName
-
setSuperReference
-
setSubReference
-