-->
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: not normalized table - mapping possible?
PostPosted: Thu Nov 25, 2004 3:04 am 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
Hibernate version:
2.1.7

Hi,

i've got a little problem and still hoping that hibernate provides a way to solve it although i know that this shouldn't happen and therefore isn't really a 'Hibernate-Thing' ...

Situation:
I've got a ClassA with a one-to-many-reference (set) to ClassB. A normal thing ... but, that's my problem, in the legacy db i'm using all data (for ClassA and ClassB) was inserted in one table and it doesn't look very good for me ... it seams that there's no way to change it ... (but i'm not giving up ;-) ) ...
Well, i've got a not normalized table and an Object-Model that (of course) doesn't fit to that situation ....

Is there a possibility to map this situation? I don't think so, but 'hope dies last ' ;) ...

My current solution would be to map a Persistence-Object to the business-classes ... not nice but the only possibility i can imagine so far ...

Is there a possiblity (perhaps a component-mapping combined with a 'set and composite-element') to map this?

TiA
curio


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.