-->
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: Collection mapping
PostPosted: Mon Sep 12, 2005 9:25 am 
Beginner
Beginner

Joined: Tue Aug 23, 2005 3:52 pm
Posts: 26
Is it possible to map a class in the hiberate that does not have DB representation but contains collection hibernate mapped classes. If yes how do you set relationship in the collection?

Thanks,
Leonid


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 12, 2005 10:22 am 
Beginner
Beginner

Joined: Mon Mar 28, 2005 12:58 pm
Posts: 27
I think what you're talking about is just a plaing ol' java object that you're going to have to load yourself since hibernate has no idea how to create it. This might be the most efficient way since you might want to be doing custom relationship mappings anyway for your collections. I have tons of these kind of POJOs that the service layer returns to the presentation layer that hides the hibernate persistent collections or entities.


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.