This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build 200608110000,jdk1.6.0 1)Create web module with JSF support on glassfish. 2)Create Entity classes from database (select Customer table) 3)Create JSF Pages from Entity class (select both previously created entity classes ) 4)Run web module 5)In browser create new Customer and insert too long string in City (it's restricted to 2 letters) 6)Click Create 7)ERROR: You are redirected to Customers table view,but no customer is added and you have to go to Netbeans log to find,what's the problem.There's only Rollback Transaction notice in the browser. It's bad behaviour,user should be somehow notified he entered bad value and the application should stay on New Customer page,rather than redirecting away.
This would be a really nice enhancement to add validation into the generator, but no time to do it in 5.5. Also, we would first need to generate more info about the constraints in DB 2 Java, such as column lengths. That should also be doable.
"Entity class" issue.
As of 65, we do generate required checks for non-nullable columns, but we do not generate any checks based on column lengths, so this is a possible enhancement.