-->
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: Hibernate and Oracles nested tables
PostPosted: Tue May 19, 2009 4:11 am 
Newbie

Joined: Tue May 19, 2009 4:01 am
Posts: 1
Hi All,

Can anyone provide some information about using nested oracle tables with hibernate.

I have table which has a column which is again a table. I don't know how the mapping is done in hibernate for this type of scenario.

The table structure is as follows

TAG_UD NUMBER NULL,
TAG_TYPE VARCHAR2(10) NULL,
REP_INC REP_UD_COLLEC NULL (this that column)


the above mentioned column is created as follows

CREATE TYPE REP_UD_COLLEC AS TABLE OF NUMBER
GO

the query to fetch data looks something like below.

Code:
select * from tag CROSS JOIN TABLE(rep_inc)


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.