-->
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: Map a list/set/array to multiple columns in table
PostPosted: Thu Mar 01, 2007 5:34 am 
Newbie

Joined: Tue Dec 12, 2006 9:07 am
Posts: 13
Hibernate version: 3.2

Is it possible to map similar type of columns to one property (or rather in a set or array)?

For Eg:

I have a denormalized table where I store individual tooth information in each column of the table say col_tooth1, col_tooth2, col_tooth3 ...col_tooth32 . Rather than having a one-to-one mapping of a column to a property in the persistent object, I would like to store all the information in an array of length 32.

Is it possible to do this kind of mapping in hibernate. Hibernate Sets/Lists represented multiple rows in a table. Can they be used to represent multiple similar types of columns instead of rows?


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.