Put lazy="false" on your many-to-one association. You can post this kind of questions on http://forum.hibernate.org
Misha. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Piersanti Hernandez Jose Gregorio Sent: Tuesday, June 07, 2005 10:32 AM To: [email protected] Subject: [xdoclet-plugins-interest] a big problem Hi, i am looking for help about hibernate .... i know this is not the place to post this kind of questions but i have a huge problem that i don�t know how to solve it ..... i hope that someone could help me ... My problem is that i have a composite-id when mapping a class ... but one of the entries of the id is another class .... (key-many-to-one) ... is there a way to tell hibernate to fetch it�s value in a single query?? It always gives me the value on the BD, and doesn�t let me chage it .... (inside the object is someting $EnhancerByCGI ... or something like that) .... that happens even if a put on the query "inner join fetch" ... doen�t fetch it and instead gives me this object that expect the session to be opened for execute the pertinent get method .... please help ... Regards. Jos� Piersanti. ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r _______________________________________________ xdoclet-plugins-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r _______________________________________________ xdoclet-plugins-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest
