Class InheritanceTest

java.lang.Object
org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
org.fastnate.generator.test.inheritance.InheritanceTest

public class InheritanceTest extends AbstractEntitySqlGeneratorTest
Tests that inheritance is correctly taken into account.
Author:
Tobias Liefke
  • Constructor Details

    • InheritanceTest

      public InheritanceTest()
  • Method Details

    • testJoinedInheritance

      @Test public void testJoinedInheritance() throws Exception
      Tests to write an entity hierarchy with InheritanceType.JOINED.
      Throws:
      Exception - if Hibernate or the generator throws one
    • testMappedSuperclasses

      @Test public void testMappedSuperclasses() throws Exception
      Tests to write sub classes of mapped superclasses.
      Throws:
      Exception - if Hibernate or the generator throws one
    • testSingleTableInheritance

      @Test public void testSingleTableInheritance() throws Exception
      Tests to write an entity hierarchy with InheritanceType.SINGLE_TABLE.
      Throws:
      Exception - if Hibernate or the generator throws one
    • testTablePerClassInheritance

      @Test public void testTablePerClassInheritance() throws Exception
      Tests to write an entity hierarchy with InheritanceType.TABLE_PER_CLASS.
      Throws:
      Exception - if Hibernate or the generator throws one