-->
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.  [ 1 post ] 
Author Message
 Post subject: lazy loading
PostPosted: Sun Feb 04, 2007 12:07 pm 
Newbie

Joined: Sun Apr 16, 2006 1:02 pm
Posts: 12
Hibernate version:

3.2

Hallo^2,

lazy loading funktioniert nicht so, wie ich mir das vorstelle. Eine Tabelle Html und eine Text (extrahierter Text, ohne HTML tags), Html ist one-to-one auf Text:

Code:
   
public class Html
{
   @OneToOne( fetch = FetchType.LAZY, cascade = CascadeType.ALL )
   @PrimaryKeyJoinColumn
   private Text text;


Mit folgender query laedt der jetzt jede Text Entitaet einzeln, obwohl die mich ueberhaupt nicht interessieren; FetchType.LAZY hilft tut's also nicht.

Code:
FROM Html h WHERE h.urlId != ALL (SELECT urlId FROM Text)


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

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.