We're using xdoclet to generate our CMP entity beans
on JBoss3.0. We want to use soft locking to implement
optimistic record locks but we're finding that if you
specify softlock JBoss CMP writes back an incremented version number on every read. Why?
Surely what we're looking for is something like this:
update myTable set myColumn=x, version=oldVersion+1
where key=y and version = oldVersion
That would update the row or fail in one atomic operation.
Am I missing something?
Has anybody got softlocks working with xdoclet and CMP2.0?
Thanks, Guy
This is an XDoclet feature so I suggest you ask this in the XDoclet lists.