-->
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: Custom Lazy Fetching
PostPosted: Thu Jul 26, 2007 5:20 pm 
Newbie

Joined: Thu Jul 26, 2007 5:08 pm
Posts: 6
Hi,
I have two classes like below and I need the lazy loading to happen using a web service. The Order table is in a local database but the Item table is provided using a web service. So, when hibernate loads the items I need it to call some method that will tunnel the load request to the web service.
Is there a way to make it call the DAO or something ?

Code:
class Order
{
    List<Item> items;
}


Code:
class Item
{
    private String name;
    private int quantity;
}


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 9:48 am 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
You could use a UserType for this!

_________________
Please don't forget to rate


Top
 Profile  
 
 Post subject: Example
PostPosted: Fri Jul 27, 2007 10:33 am 
Newbie

Joined: Thu Jul 26, 2007 5:08 pm
Posts: 6
Could you post an example plz ?

I´m using annotations also.

Thx


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.