[
https://issues.jboss.org/browse/JBSEAM-4802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Max Rydahl Andersen updated JBSEAM-4802:
----------------------------------------
Description:
When creating entities from scratch, the seam-gen new entity will generate code
with the the following:
@Version
private Integer version;
This construct unfortunately results in new records being created with NULL in
the version column. On subsequent updates this then results in
NullPointerException.
Changing Integer to int solves the problem.
was:
When creating entities from scratch, the "Create SEAM Entity" wizard will
generate code with the the following:
@Version
private Integer version;
This construct unfortunately results in new records being created with NULL in
the version column. On subsequent updates this then results in
NullPointerException.
Changing Integer to int solves the problem.
> SEAM Entity creator uses Integer for @Version - results in
> NullPointerException on update
> -----------------------------------------------------------------------------------------
>
> Key: JBSEAM-4802
> URL: https://issues.jboss.org/browse/JBSEAM-4802
> Project: Seam 2
> Issue Type: Bug
> Components: Tools
> Environment: JBDS4
> Reporter: Peter Larsen
>
> When creating entities from scratch, the seam-gen new entity will generate
> code with the the following:
> @Version
> private Integer version;
> This construct unfortunately results in new records being created with NULL
> in the version column. On subsequent updates this then results in
> NullPointerException.
> Changing Integer to int solves the problem.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues