Vineet Reynolds created FORGE-870:
-------------------------------------
Summary: 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
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
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:
http://www.atlassian.com/software/jira