All,
We have the following (bad?) assumption in our application code:
----------------------------
begin transaction
Bean b = findByPrimaryKey(...)
System.out.println("flag = " + b.getFlag()); // prints flag = 1
b.setFlag("0")
Enumeration = findByAllBeansWithFlagEqualToOne(....) // where flag = '1'
// We assume Bean b is not in the Enumeration, but it is.
end transaction
----------------------------
My question to you guys is,
Should storeEntity be called after every Entity method invocation? Right
now, a database update only happens when the Entity is commited. What does
the spec say on this? I can't find anything at the moment.
Thanks in advance,
Bill
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development