-->
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: mapping problem
PostPosted: Thu Jul 07, 2005 1:30 pm 
Newbie

Joined: Sat Apr 30, 2005 2:59 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Hi All,
I have been struggling with a mapping in hibernate. the problem is as follows -
Class Parent {

Set<ChildA> childAlist;
Set<ChildB> childBlist;
Set<ChildC> childClist;

}

ChildA ,B and C are all derived from the class Child.

I want to have a strictly unidirectional one-to-many from Parent to each of the Child types.

In the data model, the all properties are stored in the table of child.

What should be the mapping files for parent and child.
Please help asap as I am stuck for a couple of days now.
Best
Samik


Top
 Profile  
 
 Post subject: Re: mapping problem
PostPosted: Thu Jul 07, 2005 2:01 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
samik_g wrote:
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Hi All,
I have been struggling with a mapping in hibernate. the problem is as follows -
Class Parent {

Set<ChildA> childAlist;
Set<ChildB> childBlist;
Set<ChildC> childClist;

}

ChildA ,B and C are all derived from the class Child.

I want to have a strictly unidirectional one-to-many from Parent to each of the Child types.

In the data model, the all properties are stored in the table of child.

What should be the mapping files for parent and child.
Please help asap as I am stuck for a couple of days now.
Best
Samik


Why don't you show us what you've tried and we'll see if we can point out where you're going wrong.


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.