Fixed bug with directories, that should be scanned for annotations
[hibernate4-maven-plugin] / src / it / hmp-testclasses-annotationscanning / readme.txt
diff --git a/src/it/hmp-testclasses-annotationscanning/readme.txt b/src/it/hmp-testclasses-annotationscanning/readme.txt
new file mode 100644 (file)
index 0000000..1728007
--- /dev/null
@@ -0,0 +1,19 @@
+Example-Project "Hibernate-Maven-Plugin Testclasses Annotation-Scanning"\r
+\r
+This is a small Exampleproject for a base Database-Integrationtest, with the use of the "Hibernate Maven Plugin" from de.juplo for the automatic Generation and the Execution of the create-schema-sql-script. \r
+\r
+The hibernate-maven-plugin - defined in the plugins-section in the pom.xml -  scans the code for Entities to create the schema-script. Entity-Scanning is or can be done in following 3 locations:\r
+*) Project-Classes: By default, the plugin scans for @Entitiy-Annotated classes under "target/classes".\r
+*) Project-Testclasses: By default, the plugin scans for @Entitiy-Annotated classes under "target/test-classes".\r
+*) Project-Dependencies: Compile-Time-Dependencies wil also be scanned.\r
+\r
+Test-Structure:\r
+-) Basic Code for User-Change-Tracking over JPA EntityListener: Some basic Interfaces and Classes for a automatic tracking of the User and the Date at the Phases PRE-PERSIST and PRE-UPDATE are located under src/main/java.\r
+-) The important Test-Entity "UserChangeInfoTest" for testing the userinfo-tracking and the Testservice-Declaration and -Implementation for storing/updating/reading such Test-Entity is located under src/test/java. \r
+-) Integrationtest(s): The Integrationtest "UserChangeInfoTest" is based on Arquillian. Arquillian starts an OpenEJB Embedded Container, seeds the Database with Testdata, and executes the Integrationtest.\r
+-) Dataset-Files, and different configurationfiles for Arquillian, JPA, Logback,... are located under src/test/resources.\r
+\r
+\r
+Building the Project:\r
+As usual: To build and install the project into your local maven-repository, execute "mvn install".\r
+\r