[seam-issues] [JBoss JIRA] Updated: (JBSEAM-4802) SEAM Entity creator uses Integer for @Version - results in NullPointerException on update

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Tue Apr 19 05:01:36 EDT 2011


     [ 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


More information about the seam-issues mailing list