Hello,
I am using Netbeans and I am trying to
test my database created in SQL Server 2008.
The Steps:
1. Created the DB
2. Created new Web Project
3. Created Entity Classes from Database
4. Created
JSF pages from Entity Classes.
The resulting CRUD application lists the data that exist in the tables.
But when I try to create a new entry in a table I get a persistence error ("A persistence error occurred.").
The error occurs at the point that the EntityManager is trying to persist
e.g. getEntityManager().persist(entity)
I really do not understand how to spot the problem from this point onwards so that I try to solve it. Any ideas? It's like a black box to me.
Also, Is it a good idea to use these auto generated classes, jsf pages etc to built my final web application? Or should I re-write them? I am feeling I will loose control especially in cases like this that I don't know why the error occurs.
thanks.