These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: how to prevent lot of updation in one to many mapping
PostPosted: Mon Sep 21, 2009 7:16 am 
Beginner
Beginner

Joined: Mon Sep 14, 2009 9:29 am
Posts: 30
16:43:27,906 INFO [STDOUT] Hibernate: insert into bankloanproposal (loanperiod, interestrate, interestapplfreq, intcalcmethod, compondfreq, fixedorfloating, typeofloan, securedunsecured, securitytype, status, createdby, createddate, authorisedby, authoriseddate, proposalnumber, SEQUENCENUMBER, accountnumber) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
16:43:27,906 INFO [STDOUT] Hibernate: insert into bankloanproposal (loanperiod, interestrate, interestapplfreq, intcalcmethod, compondfreq, fixedorfloating, typeofloan, securedunsecured, securitytype, status, createdby, createddate, authorisedby, authoriseddate, proposalnumber, SEQUENCENUMBER, accountnumber) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
16:43:28,390 INFO [STDOUT] Hibernate: update proposals set bankid=?, letterreferencenumber=?, dateofsubmission=?, proposedloanamount=?, stagesofproposal=?, dateofrejection=?, reasonsforrejection=?, loansanctionamount=?, sanctiondate=?, remarks=?, createdby=?, createddate=?, authorisedby=?, authoriseddate=? where proposalnumber=?
16:43:28,390 INFO [STDOUT] Hibernate: update bankloanproposal set proposalnumber=?, SEQUENCENUMBER=? where accountnumber=?
16:43:28,390 INFO [STDOUT] Hibernate: update bankloanproposal set proposalnumber=?, SEQUENCENUMBER=? where accountnumber=?


Top
 Profile  
 
 Post subject: Re: how to prevent lot of updation in one to many mapping
PostPosted: Mon Sep 21, 2009 8:32 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Well, you're going to get updates when your properties get updated. That's just the way it works.

It all happens within one transaction, so the overhead is minimal.

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.