]
Max Rydahl Andersen commented on JBIDE-8558:
--------------------------------------------
I don't know what schema you are using but my guess is that your database is saying
that the column is optional thus the right type is Integer not int.
SEAM Entity creator uses Integer for @Version - results in
NullPointerException on update
-----------------------------------------------------------------------------------------
Key: JBIDE-8558
URL:
https://issues.jboss.org/browse/JBIDE-8558
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Seam, UpStream
Environment: JBDS4
Reporter: Peter Larsen
Assignee: Alexey Kazakov
Fix For: LATER
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: