-->
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.  [ 1 post ] 
Author Message
 Post subject: Lazy loading lob - merge does nothing.
PostPosted: Tue Oct 12, 2010 4:02 am 
Newbie

Joined: Mon Oct 11, 2010 9:08 am
Posts: 1
Hello,

I've got an entity that contains following part
Code:
@Column(name = "CL_DATDSCR_198DDES")
@Lob
@Basic(fetch = LAZY)
private String description;


I instrumented the code using the 'org.hibernate.tool.instrument.javassist.InstrumentTask'

This works fine for selects. But does nothing for updates.

Let me explain in more detail:
  • fetch the entity from the database (with an entity manager that is closed as soon as this is done)
  • user does some modifications in the ui
  • put a new value in the Lob field (we do not modify the other fields of the entity)
  • Open a new transaction and merge the entity. This is where it goes wrong, hibernate does not see that the field is modified and does not update the db.

I tried it also using the technique described on http://justonjava.blogspot.com/2010/09/lazy-one-to-one-and-one-to-many.html (see last comment) but it has the exact same behaviour

environment:
jpa 2.0
hibernate 3.5.6

If someone can confirm this is a bug, or did I miss something?

regards
hans


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

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.