-->
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.  [ 2 posts ] 
Author Message
 Post subject: @NotFound( action = NotFoundAction.IGNORE ) no work on field
PostPosted: Thu Jul 31, 2008 3:12 am 
Regular
Regular

Joined: Fri Oct 05, 2007 3:22 am
Posts: 69
@NotFound doesn't work on a field and when used on method forces a load.

I'm trying to get a OneToOne lazy load to work but sometimes I encounter ENFE, adding @NotFound( action = NotFoundAction.IGNORE ) to the method defeats the purpose of lazy loading since it for some reason forces a load.

Adding it to the field does not force the load but I still encounter a ENFE


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 31, 2008 1:38 pm 
Regular
Regular

Joined: Fri Oct 05, 2007 3:22 am
Posts: 69
This scenario causes still results in an ENFE when applied to the method.

@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, optional = false)
@PrimaryKeyJoinColumn
@NotFound( action = NotFoundAction.IGNORE )
public X get()

Inovking this method can still result in an ENFE being raised?? Is there specific cases I should know about when this works and does not work? It isn't documented.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.