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
diff --git a/src/it/hibernate-lob-converter-bug/src/test/java/io/blep/LobConverterTest.java b/src/it/hibernate-lob-converter-bug/src/test/java/io/blep/LobConverterTest.java
new file mode 100644 (file)
index 0000000..b08b858
--- /dev/null
@@ -0,0 +1,22 @@
+package io.blep;
+
+import org.junit.Test;
+
+import javax.persistence.*;
+
+/**
+ * @author blep
+ */
+public class LobConverterTest {
+
+    @Test
+    public void testName() throws Exception {
+        final EntityManagerFactory emf = Persistence.createEntityManagerFactory("samplePU");
+
+        final EntityManager em = emf.createEntityManager();
+
+        em.getTransaction().begin();
+        em.persist(new MyEntity());
+        em.getTransaction().commit();
+    }
+}