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