Can an object with uninitialized lazy collectsions (whose elements are a UserType) be saved
without first loading the lazy collection. I have been told this can be done, but I can not get it to work. The code generally looks like this:
Code:
Session lSession = sf.openSession();
List<Persistable> l = lSession.find(*some HQL*);
Persistable obj = l.get(0);
*change something in object, NOT touching lazy collection*
session.saveOrUpdate(obj);
On the last line, when trying to saveOrUpdate(), Hibernate tries to load the lazy collection before saving. I just want it to update the one thing I changed... Can anyone give me some direction here? Any help is appreciated.
Thanks in advnace for all responses.