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: Exotic mapping
PostPosted: Fri Aug 20, 2004 12:00 pm 
Newbie

Joined: Wed Jun 30, 2004 12:37 pm
Posts: 9
Hibernate version:2.1.6
Hi,
I have an exotic data structure that I would like to map using Hibernate.
Here's the the columns of the table :

attribute1
attribute2
.
.
.
component1-att1
component1-att2
component2-att1
component2-att2
.
.
componentn-att1
componentn-att2

As you can notice, this data structure isn't easy to maintanin (if other components are added, I have to change the persistence class).

I would like to map this table to an Object with attribute1, ..., attributen with a collection of components with attributes : component-att1, component-att2. Changing the data base is not a possible option.

I've looked in the doc to component mapping and custom mapping but couldn't figure out a way to do it.

Any help is really appreciated.


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.