Class MappedSubclassTestEntity
java.lang.Object
org.fastnate.generator.test.inheritance.MappedSuperclassTestEntity<Integer>
org.fastnate.generator.test.inheritance.MappedSubclassTestEntity
- All Implemented Interfaces:
SuperclassEntity
- Direct Known Subclasses:
SecondSingleTableSubclassTestEntity,SingleTableSubclassTestEntity
@Entity
public class MappedSubclassTestEntity
extends MappedSuperclassTestEntity<Integer>
implements SuperclassEntity
Entity that is the subclass of a mapped super class.
Additionally this is the superclass of
SingleTableSubclassTestEntity to test
InheritanceType.SINGLE_TABLE, the default entity inheritance type.- Author:
- Tobias Liefke
-
Constructor Summary
ConstructorsConstructorDescriptionMappedSubclassTestEntity(String name, String superProperty) Creates a new instance ofMappedSubclassTestEntity. -
Method Summary
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
-
MappedSubclassTestEntity
Creates a new instance ofMappedSubclassTestEntity.- Parameters:
name- the name of the new entitysuperProperty- a property that is written, because it was defined in the superclass
-
MappedSubclassTestEntity
public MappedSubclassTestEntity()
-
-
Method Details
-
toString
- Overrides:
toStringin classMappedSuperclassTestEntity<Integer>
-
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
-