[forge-issues] [JBoss JIRA] (FORGE-870) Faces scaffold does not generate form fields for @Id fields not annotated with @GeneratedValue
Vineet Reynolds (JIRA)
jira-events at lists.jboss.org
Wed Apr 24 17:49:53 EDT 2013
[ https://issues.jboss.org/browse/FORGE-870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vineet Reynolds resolved FORGE-870.
-----------------------------------
Fix Version/s: 1.2.4.Final
Resolution: Done
Pushed upstream https://github.com/forge/core/commit/ffc2ca852e47a80eb7a9ab938a620753cd67ad10
> 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
> 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: http://www.atlassian.com/software/jira
More information about the forge-issues
mailing list