Hi,

  I found a small issue with the optimistic container. Unless we call the 
getLastUpdateDate() the container is adding the where clause as null.

i.e.

//Group table has a CMR to users table
Collection c = grouplocal.getUsers();
Iterator i = c.iterator();
while(i.hasNext())
{
  UserLocal user = (UserLocal)i.next();
  user.setSomething();
}

Since we are using the optimistic container, in the where clause it is adding 
the following

  where userid =? and modifieddate is null

With the following code the modifiedddate is set currently

//Group table has a CMR to users table
Collection c = grouplocal.getUsers();
Iterator i = c.iterator();
while(i.hasNext())
{
  UserLocal user = (UserLocal)i.next();
  user.getModifiedDate();
  user.setSomething();
}

 where userid =? and modifieddate = ?

Think it should take the value for date in the where clause irrescpective of we 
are calling the getter or not.

Regards,
V.Janardhanan

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859247#3859247

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859247


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to