Is it possible to remove the "version" property in Roo-managed JPA persistence?
Note: Someone else already asked this on StackOverflow and got no correct answer yet.
Is it possible to remove the "version" property in Roo-managed JPA persistence?
Note: Someone else already asked this on StackOverflow and got no correct answer yet.
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
Mario Martínez Sánchez
Project Manager & Software Architect
--------------------------
Disid Technologies S.L.
http://www.disid.com
--------------------------
gvNIX
http://gvnix.googlecode.com
http://www.gvnix.org
Thanks for the response; I guess I'll have to "push in" both the _Jpa_Entity.aj and the _Jpa_ActiveRecord.aj then since both are generated from the same @RooJpaActiveRecord annotation and ActiveRecord depends on Entity.
Roo is turning out to be much less flexible then I had expected...
Simplicity is prerequisite for reliability. — Edsger W. Dijkstra
I simply add
@Version
@Transient
private Integer version;
to the java class
Another solution is to set the version attribute with no value:
@RooJpaActiveRecord(versionField="", ...)
I think this is the better solution ...
Last edited by mmartinez; Aug 30th, 2012 at 11:44 AM.
Mario Martínez Sánchez
Project Manager & Software Architect
--------------------------
Disid Technologies S.L.
http://www.disid.com
--------------------------
gvNIX
http://gvnix.googlecode.com
http://www.gvnix.org