Search in sources :

Example 1 with EnumTypeEntity

use of org.hibernate.envers.test.entities.customtype.EnumTypeEntity in project hibernate-orm by hibernate.

the class EnumTypeTest method initData.

@Test
@Priority(10)
public void initData() {
    EntityManager em = getEntityManager();
    em.getTransaction().begin();
    EnumTypeEntity entity = new EnumTypeEntity(EnumTypeEntity.E1.X, EnumTypeEntity.E2.A);
    em.persist(entity);
    em.getTransaction().commit();
    em.close();
}
Also used : EntityManager(javax.persistence.EntityManager) EnumTypeEntity(org.hibernate.envers.test.entities.customtype.EnumTypeEntity) Test(org.junit.Test) Priority(org.hibernate.envers.test.Priority)

Aggregations

EntityManager (javax.persistence.EntityManager)1 Priority (org.hibernate.envers.test.Priority)1 EnumTypeEntity (org.hibernate.envers.test.entities.customtype.EnumTypeEntity)1 Test (org.junit.Test)1