-->
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: Using a particular Index in Oracle for a .set or .bag
PostPosted: Fri Nov 05, 2010 1:29 pm 
Newbie

Joined: Fri Nov 05, 2010 12:45 pm
Posts: 1
I am very new to using hibernate, so forgive me if this is obvious. I have in some places been able to use the @hibernate.column name="column1" index="index1" on situations where I am one-to-one, or many-to-one. I am having trouble however making it auto-create the indexes for situations of one-to-many.

Example below: This one works and creates the index as expected.
/**
* Gets blah
*
* @return the blah
*
* @hibernate.many-to-one lazy="false" class="blahclass" cascade="all" foreign-key="blah_fk"
* @hibernate.column name="blah_id" index="BLAH_ID_IDX"
*/

This one below I have tried many different ways to try to specify an index for to to create for use, but to no avail.
/**
* Gets the blahs.
*
* @return the blahs
*
* @hibernate.set lazy="false" cascade="save-update" inverse="false" table="blahs"
* @hibernate.key column="blah_id" foreign-key="blah_fk"
* @hibernate.one-to-many class="blahclass"
*/

Does my problem have something to do with my use of @hibernate.set, and in other examples @hibernate.bag ?

I hope I gave enough information for someone to give me a direction.
Thanks


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.