-->
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.  [ 3 posts ] 
Author Message
 Post subject: Transpose multiple rows to a single row
PostPosted: Mon Jun 04, 2007 6:24 am 
Newbie

Joined: Mon Jun 04, 2007 6:21 am
Posts: 2
Is there a native hibernate method to transpose (or transform) multiple records contained into a db table, into a single row mapped to another table of the database?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 04, 2007 6:27 am 
Senior
Senior

Joined: Thu May 17, 2007 2:31 am
Posts: 194
Location: Sri Lanka
Hi

I can't understand uor requirement


send more details


Amila


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 04, 2007 8:05 am 
Newbie

Joined: Mon Jun 04, 2007 6:21 am
Posts: 2
I got a table named A with this structure:
id, column_name, value

Transposing a defined number of records of this table, we are able to create another table called B.
It's a kind of dynamic creation of another table, storing the definition into multiple rows.

My question is:
is there any method in Hibernate to make this job?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.