-->
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: can these schemas be mapped with hibernate?
PostPosted: Sun Feb 11, 2007 6:25 pm 
Newbie

Joined: Wed Feb 07, 2007 11:17 am
Posts: 5
First I'd like to point out that I am not asking people to give me the mapping. I've been strugging with NHibernate for the past few days, and ran into a few problems with a couple mapping.

Image
In this schema, the ReportParty table is serving as a glorified association table so to speak. It has a one-to-many relationship with both the Report table and the Party table, but with additional fields. I'd like to use the following middle tier structure.

Image
I'm not sure if inheritance is the most intuitive way of mapping this. But I'd like to have the ReportParty object inherit from the Party object. And report should have a collection of ReportParty objects. Is this achievable?

Again, I'm not seeking handouts. Just need the experts to point me in the right direction of how to either map them the way I intended or a way that is possible by hibernate's design.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 13, 2007 12:15 am 
Newbie

Joined: Wed Feb 07, 2007 11:17 am
Posts: 5
ImageImage

Found a semi solution to this problem. but I ran into the same issue as this post.


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.