This template project uses Boundary Control Entity (BCE) pattern. Very good description of this pattern is presented by Adam Bien - Structuring Java EE 7 Applications.
This template project uses HSQLDB. If you want to use other RDBMS:
- add JDBC driver into libs/lib element of tomee-maven-plugin configuration in pom.xml;
- edit DataSource configuration in src/test/tomee/tomee.xml
mvn exec:java
mvn package tomee:start
mvn tomee:stop
The jsf crud is working. But the jQuery not work. i get :
Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to bookstore.entity.Book ```