-->
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: Can I map this? one-to-one or many-to-one
PostPosted: Fri Oct 10, 2003 4:39 am 
Newbie

Joined: Fri Oct 10, 2003 4:22 am
Posts: 1
First, I have readed the reference and the faqs, but i cant find a solution of my problem.
There is an existing ddbb schema and existing classes. I cant touch them.

There is a class A (parent) with a single reference of a class B (child). The class B may have no parent of type class A (there is another type of parent).

But in the ddbb the table A dont have a key to the table B. Is the B one that have the FKA.

I cant use the one-to-one because the PKA & PKB arent equivalent .
I cant use the many-to-one, because the FK is in the wrong class.

Is there a solution without modify the clases or ddbb schema?

Thanks for read my poor english:

Miki


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.