-->
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.  [ 3 posts ] 
Author Message
 Post subject: UserType and Basic(fetch=LAZY)
PostPosted: Wed Apr 05, 2006 2:52 am 
Newbie

Joined: Wed Nov 26, 2003 4:41 pm
Posts: 12
Hi all,

I've got a relatively simple mapping with the exception of one UserType. The UserType is for a Clob column, which stores XML. I've mapped the property like this:
Code:
  @Type(type = "com.toyota.papis.access.hibernate.JAXBMessageType",
    parameters = @Parameter(name = "type", value = ".....VehicleSpecificationMsg"))
  @Basic(fetch = FetchType.LAZY)
  private VehicleSpecificationMsg message;

However the property is always loaded (regardless of whether it is accessed or not). Does Hibernate support lazy loading of custom types or have I missed something else?

cheers
dim


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 11:47 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you have to enhance your classes to makeproperty lazy loading work

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Avoiding bytecode instrumentation
PostPosted: Mon Aug 07, 2006 4:44 pm 
Newbie

Joined: Mon Aug 07, 2006 4:34 pm
Posts: 1
I read in the documentation that you can enable bytecode instrumentation to get this to work, but that the recommended alternative is to use the projection capability of EJB-QL or Criteria queries. I looked around and couldn't find too much to read on that, I think becuase I don't know how to begin looking into that. Does anyone have some sites I can look at, or basic strategies to get me on the right path?


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

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.