-->
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.  [ 2 posts ] 
Author Message
 Post subject: Map Oracle nested table collection type
PostPosted: Mon Jan 11, 2010 7:51 pm 
Newbie

Joined: Mon Jan 11, 2010 7:44 pm
Posts: 1
I have defined a Collections type in Oracle

create or replace TYPE Collections AS TABLE OF varchar2(64);

This type is used in one of the tables. I would like to have Hibernate mapped this "Collections" Oracle type.

If you have done this before, please give me some guidances or an example.


Thanks


Top
 Profile  
 
 Post subject: Re: Map Oracle nested table collection type
PostPosted: Tue Jan 12, 2010 3:01 pm 
Beginner
Beginner

Joined: Thu Jun 21, 2007 9:24 pm
Posts: 20
Location: Lansing, Michigan, USA
I have not done exactly this before, but I think the best approach would be to implement a User Type. I've done that, for instance, for YAML packed into a string and an array of base64-encoded integers packed into a string.

See section 5.2.3 of the manual and the javadoc for UserType or CompositeUserType.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.