• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

automatic dirty checking

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is it a good practice to make use of

automatic dirty checking concept in Hibernate application programming?
[ June 18, 2007: Message edited by: Madhusudhana Edintipal ]
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well ... i would like to share my experience with you..
i used the hibernate in a scenario where.. i have some classes for master,detail and sub detail tables. mapped..

i had 2 cases
1- for new record. of master detail and sub detail..(this time all records are assumed to be new)
2- for editing.. here i can't ensure, what are the data user will delete,add and edit..
for example..
he first delete the existing detail,with sub detail.
then updated old data..
then inserted new data..in detail and in sub detail..
and then deleted newly entered data again..
and then inserted new data again in detail and sub detail with different values..

now i master object.. and all details and sub details are associated with..
i don't find any built in functionality at that time in hibernate which gives me the facility to just call a single method.. and it will consolidated records in memory and records in database.. accordingly.. got it.?
not even merge was doing that..
so in order to cope up this problem i maintained the status in pojo's i used to manipulate in order to keep the state of all objects..
and later i consolidate by my self..by getting all records rite now in DB.
with the detached objects..

if you experience such problem and got any built in solution kindly let me know too..


- thanks
 
Message for you sir! I think it is a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic