-->
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: Wrapping a collection with a non-persistent object: how?
PostPosted: Tue Dec 16, 2003 10:46 am 
Beginner
Beginner

Joined: Wed Nov 26, 2003 11:53 am
Posts: 26
Location: Netherlands
Hello,

I'm stumped because I don't really know how to translate this in Hibernate terminology:

I have classes A 1--1 B. The database has tables of the form A 1---* C. The B class has to load all its C records (which have a foreign key to A), but it is not itself a persistent class. I can add the C class as a persistent class, but how can I tell Hibernate to use B as a "non-persistent wrapper"?

What is the Hibernate terminology for a non-persistent intermediate class?

(I have to attempt this mapping because both the object model and the database model are legacy. I think I could get this done with C as composite-element of B if only B would be persistent, but it isn't and will not be in the far future. Business as usual, I guess ;-)

Thanks,

Serge.


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.