-->
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.  [ 3 posts ] 
Author Message
 Post subject: Creating indices with hbm2dll.auto-option.
PostPosted: Wed Jan 03, 2007 6:11 am 
Beginner
Beginner

Joined: Mon Mar 20, 2006 7:59 am
Posts: 30
Hello,

is it possible to create indices when exporting the database schema with hbm2dll.auto-option the using the lates version of Hibernate with JPA?

At the moment I am still developing a Hibernate based application and nearly every day I have to add another column to my database. Therefore I am using the hbm2dll.auto-option. And as there will be a lot of data in the database I have to add some indices to the tables with more than 1.000.000 entries. I would like to do this in my code - by hand is also possible but it would be more convenient to do it in the code. Is this possible somehow?

Regards and thanks,
Dominik


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 03, 2007 6:34 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
It depends on what you mean by "in the code". If you mean hbm, I guess yes. Did you try using the index attribute on the property tag?

See the reference documentation: http://www.hibernate.org/hib_docs/v3/re ... guide.html

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 03, 2007 7:02 am 
Beginner
Beginner

Joined: Mon Mar 20, 2006 7:59 am
Posts: 30
Thanks for the responce. Perhaps I didn't mention that I am using Hibernate in a JPA environment. That means that I am using JPA-Annotations to define the mapping... That means I don't have a hbm-file. But I will have a look at hibernate annotations - I think I'll have more possibilities there.


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