-->
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: Tuplizer how to?
PostPosted: Fri Jan 19, 2007 11:16 am 
Newbie

Joined: Mon Mar 13, 2006 9:15 am
Posts: 4
Location: Oslo Norway
I just came over the Tuplizer interface introduced in 3.1. But the examples in the documentation and code reference didn't quite give me the grips on the topic.

Anyway I have a tough nut to crack which would be best described with a Offer- Salesman mapping. The classes could look like so
Code:
class Offer{
     private double amount;
     private Salesman salesman;
}
class Salesman{
     private String ident;
     private String name;
}

And let's now say that I want to persist Offer but Salesman should be retrived remotely and lazily. Is this possible by simply and extending PojoEntityTuplizer and overriding its constructor?


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.