[jboss-user] [Javassist user questions] - Lazyload of Map using Hibernate Annotations only.

sucheta24 do-not-reply at jboss.com
Fri Jul 27 03:32:08 EDT 2007


I have a problem with Lazyload of Map objects of Java using Hibernate Annotations only? 

My piece of code - 

@OneToOne(fetch = FetchType.LAZY) 
@MapKey(columns = { @Column(name = "locale", nullable = false)}) 
private Map values; 

Instead of @OneToOne, I also tried with 

But Unable to lazy load the map. 

Moreover the mapping file used in Hibernate are automatically generated. I can't write them explicitly. 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068114#4068114

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068114

More information about the jboss-user mailing list