-->
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: additional index for table
PostPosted: Mon May 29, 2006 7:49 am 
Newbie

Joined: Mon May 29, 2006 7:37 am
Posts: 4
Hi everyone,
I`m quite lame in hibernate, so sorry for stuppid question. The quiestion is:

I have a mapping like this:
Code:
<hibernate-mapping package="thepackage">
    <class name="someclass" table="someclass_table">
        <property name="property1" column="property1_column"/>
    </class>
</hibernate-mapping>


So I wanna add an index for quick DB selects, but I don`t know how could I specify it.

Can anyone help? Please? ;)


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 9:31 am 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
You have to create the index in your db not in the hibernate mapping file

_________________
Please don't forget to rate


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.