Added example-code for hibernate-bug HHH-9615 as additional test-case
[hibernate4-maven-plugin] / src / it / hibernate-lob-converter-bug / src / test / java / io / blep / LobConverterTest.java
1 package io.blep;
2
3 import org.junit.Test;
4
5 import javax.persistence.*;
6
7 /**
8  * @author blep
9  */
10 public class LobConverterTest {
11
12     @Test
13     public void testName() throws Exception {
14         final EntityManagerFactory emf = Persistence.createEntityManagerFactory("samplePU");
15
16         final EntityManager em = emf.createEntityManager();
17
18         em.getTransaction().begin();
19         em.persist(new MyEntity());
20         em.getTransaction().commit();
21     }
22 }