-
Bug
-
Resolution: Done
-
Major
-
1.2.3.Final
-
None
The Faces scaffold does not generate any form fields for @Id annotated fields. This is because the Metawidget JPAInspector used by the scaffold plugin is configured to hide Ids.
This should however be done conditionally, when the @Id field is also annotated with a @GeneratedValue, since attempting to create a new entity instance without a provided id, results in the following error being displayed:
org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save()
- relates to
-
FORGE-572 Forge scaffold faces creates view beans with Id always Long against user-generated Entities
- Closed