]
Vineet Reynolds updated FORGE-870:
----------------------------------
Affects Version/s: 1.2.3.Final
Faces scaffold does not generate form fields for @Id fields not
annotated with @GeneratedValue
----------------------------------------------------------------------------------------------
Key: FORGE-870
URL:
https://issues.jboss.org/browse/FORGE-870
Project: Forge
Issue Type: Bug
Components: Scaffold
Affects Versions: 1.2.3.Final
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
Fix For: 1.2.4.Final
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:
{noformat}org.hibernate.id.IdentifierGenerationException: ids for this class must be
manually assigned before calling save(){noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: