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
|