Class JpaUtilTest
java.lang.Object
com.reallifedeveloper.tools.test.database.JpaUtilTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidgetField()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
JpaUtilTest
public JpaUtilTest()
-
-
Method Details
-
getTableNameForEntityWithTableAnnotation
@Test public void getTableNameForEntityWithTableAnnotation() -
getTableNameForEntityWithoutTableAnnotation
@Test public void getTableNameForEntityWithoutTableAnnotation() -
getField
- Throws:
Exception
-
getNonExistingField
@Test public void getNonExistingField() -
getIdField
- Throws:
Exception
-
getNonExistingIdField
@Test public void getNonExistingIdField() -
getIdValue
- Throws:
Exception
-
getFieldNameFromColumnAnnotation
@Test public void getFieldNameFromColumnAnnotation() -
getFieldNameFromFieldInSuperClass
@Test public void getFieldNameFromFieldInSuperClass() -
getFieldNameFromJoinColunAnnotation
@Test public void getFieldNameFromJoinColunAnnotation() -
getNonExistingFieldName
@Test public void getNonExistingFieldName() -
getPrimaryKeyTypeForSimpleEntity
@Test public void getPrimaryKeyTypeForSimpleEntity() -
getPrimaryKeyTypeForEntityWithInheritedId
@Test public void getPrimaryKeyTypeForEntityWithInheritedId() -
getPrimaryKeyTypeForEntityWithIdClass
@Test public void getPrimaryKeyTypeForEntityWithIdClass() -
getPrimaryKeyTypeForEntityWithEmbeddedId
@Test public void getPrimaryKeyTypeForEntityWithEmbeddedId() -
getPrimaryKeyTypeForNonEntity
@Test public void getPrimaryKeyTypeForNonEntity() -
getPrimaryKeyforEntityWithoutId
@Test public void getPrimaryKeyforEntityWithoutId() -
addObjectToCollectionField
- Throws:
Exception
-
addObjectToNonCollectionField
- Throws:
Exception
-
addEntitiesToMapField
- Throws:
Exception
-
addEntitiesToNonMapField
- Throws:
Exception
-
fieldNameForLogging
- Throws:
Exception
-