Class InheritanceTest
java.lang.Object
org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
org.fastnate.generator.test.inheritance.InheritanceTest
Tests that inheritance is correctly taken into account.
- Author:
- Tobias Liefke
-
Field Summary
Fields inherited from class org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
WRITER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTests to write an entity hierarchy withInheritanceType.JOINED.voidTests to write sub classes of mapped superclasses.voidTests to write an entity hierarchy withInheritanceType.SINGLE_TABLE.voidTests to write an entity hierarchy withInheritanceType.TABLE_PER_CLASS.Methods inherited from class org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
createQuery, executeSql, findResults, findResults, findSingleResult, findSingleResult, getConnection, getEm, getGenerator, getGeneratorProperties, setup, setup, tearDown, write
-
Constructor Details
-
InheritanceTest
public InheritanceTest()
-
-
Method Details
-
testJoinedInheritance
Tests to write an entity hierarchy withInheritanceType.JOINED.- Throws:
Exception- if Hibernate or the generator throws one
-
testMappedSuperclasses
Tests to write sub classes of mapped superclasses.- Throws:
Exception- if Hibernate or the generator throws one
-
testSingleTableInheritance
Tests to write an entity hierarchy withInheritanceType.SINGLE_TABLE.- Throws:
Exception- if Hibernate or the generator throws one
-
testTablePerClassInheritance
Tests to write an entity hierarchy withInheritanceType.TABLE_PER_CLASS.- Throws:
Exception- if Hibernate or the generator throws one
-