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 Details

    • TablePerClassSubclassTestEntity

      public TablePerClassSubclassTestEntity(long id, String name, String description)
      Creates a new instance of TablePerClassSubclassTestEntity.
      Parameters:
      id - the id of the entity, as identity generation is not supported for this type of inheritance
      name - saved in TablePerClassSuperclassTestEntity
      description - saved in this class
    • TablePerClassSubclassTestEntity

      public TablePerClassSubclassTestEntity()
  • Method Details

    • getDescription

      public String getDescription()
      Description copied from interface: SubclassEntity
      The description of the entity, defined in the sub class in the entity hierarchy.
      Specified by:
      getDescription in interface SubclassEntity
      Returns:
      the description
    • setDescription

      public void setDescription(String description)