-->
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: How to map a (DB or Entity Relation) Subtype right?
PostPosted: Wed Jan 26, 2005 11:30 am 
Newbie

Joined: Wed Feb 04, 2004 12:33 pm
Posts: 13
Location: Vienna/Austria
http://www.hibernate.org/ForumMailingli ... AskForHelp

read and understand!

Hibernate version:
2.1.7

Name and version of the database you are using:
Oracle 9iR2

Hello hibernate team,

I guess my former post was a bit unprecise/unclear ...
therefore I'll give it a second chance/try:

I have the following legacy database model:

Table Object_States (
object_id number -- primary key
...
)

Table Person (
person_id number -- pk, fk on Object_States(object_id)
...
)

Table Order (
order_id number -- pk, fk on Object_States(object_id)
...
)

many more tables like Person/Order

I know, this DB design could lead to controversional discussions -
it is a legacy db-schema anyway ... so I have no way to change it!

My problem is, how to map this so called subtype (sometimes called arc)
right ...

What I need is an unidirectional one-to-one mapping as a primary key association! There is no need/way to navigate from Object_States back
to Person, Order, whatever ...

I would really appreciate, if I can ommit another column Object_State_Id
in all these tables, as the primary key in all tables are OIDs, so identity is given for the whole schema!

Any hints, suggestions, etc. are highly welcome, as I'm getting under timepressure slowly ...

Even a now way would help me ... so I know, that I have to find a workaround ...

Thx in advance
from snowy Vienna

K:)


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.