Class JpaUtilTest

java.lang.Object
com.reallifedeveloper.tools.test.database.JpaUtilTest

public class JpaUtilTest extends Object
  • Constructor Details

    • JpaUtilTest

      public JpaUtilTest()
  • Method Details

    • getTableNameForEntityWithTableAnnotation

      @Test public void getTableNameForEntityWithTableAnnotation()
    • getTableNameForEntityWithoutTableAnnotation

      @Test public void getTableNameForEntityWithoutTableAnnotation()
    • getField

      @Test public void getField() throws Exception
      Throws:
      Exception
    • getNonExistingField

      @Test public void getNonExistingField()
    • getIdField

      @Test public void getIdField() throws Exception
      Throws:
      Exception
    • getNonExistingIdField

      @Test public void getNonExistingIdField()
    • getIdValue

      @Test public void getIdValue() throws Exception
      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

      @Test public void addObjectToCollectionField() throws Exception
      Throws:
      Exception
    • addObjectToNonCollectionField

      @Test public void addObjectToNonCollectionField() throws Exception
      Throws:
      Exception
    • addEntitiesToMapField

      @Test public void addEntitiesToMapField() throws Exception
      Throws:
      Exception
    • addEntitiesToNonMapField

      @Test public void addEntitiesToNonMapField() throws Exception
      Throws:
      Exception
    • fieldNameForLogging

      @Test public void fieldNameForLogging() throws Exception
      Throws:
      Exception