From: Shamanth M. <sha...@ya...> - 2003-08-26 05:30:37
|
When I do a session.load() on an object which has complex many-many relationship with other objects I get a strange kind of behaviour. It happens to do a correct select first and then tries to do an update and sometimes even delete. This behaviour is seen only the first time I call session.load().. Next time onwards it works perfectly by doing only select quiries.. PLease help me in resolving the above issue.. 1. How do I make hibernate not do a update or delete when performing session.load().I tried playing around with LOCKMOde with no suuccess. 2.If an update or delete is being done is it because there's wroung data in the database? if so.. why doesn't it get resolved once it does a update or delete.. If I restart the server and access the same record it again throws the same problem I am getting the following exception when session.load does an update or delete.. "exception setting property value with CGLIB setter of " Awaiting reply... Thanks Shamanth Murthy __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |