Mantis - Resin
Viewing Issue Advanced Details
3080 minor always 11-17-08 16:40 12-15-08 14:56
dicr  
ferg  
normal  
closed 3.2.1  
fixed  
none    
none 4.0.0  
0003080: Resin use new Integer(1) to initialize @Version property with java.sql.Timestamp
@Entity
class Test {
   @Version
   private java.sql.Timestamp _version;
}
In the generated ejb source file Amber use new Integer(1) to initialize _version property of Test bean, but its type is not a number :(

ejb-3_0-fr-spec-persistence.pdf

9.1.17 Version Annotation

The following types are supported for version properties:
int, Integer, short, Short, long, Long, Timestamp.

Notes
(0003645)
ferg   
12-15-08 14:56   
jpa/0x03