Added integration-test provided by Guido Wimmel <Wimmel.Guido@swm.de>
[hibernate4-maven-plugin] / src / it / schemaexport-example / schemaexport-example-persistence-impl / src / main / java / de / test / schemaexport / persistence / dao / IDepartmentDAO.java
diff --git a/src/it/schemaexport-example/schemaexport-example-persistence-impl/src/main/java/de/test/schemaexport/persistence/dao/IDepartmentDAO.java b/src/it/schemaexport-example/schemaexport-example-persistence-impl/src/main/java/de/test/schemaexport/persistence/dao/IDepartmentDAO.java
new file mode 100644 (file)
index 0000000..0479edd
--- /dev/null
@@ -0,0 +1,12 @@
+package de.test.schemaexport.persistence.dao;\r
+\r
+import javax.persistence.EntityManager;\r
+import de.test.schemaexport.domain.Department;\r
+\r
+public interface IDepartmentDAO {\r
+\r
+       Department findByID(EntityManager em, long id);\r
+\r
+       Department createOrUpdate(EntityManager em, Department toCreate);\r
+\r
+}\r