-->
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: Database indexes from mapping files...
PostPosted: Tue Feb 21, 2006 9:31 pm 
Beginner
Beginner

Joined: Thu Dec 08, 2005 6:49 pm
Posts: 49
I'm using SchemaExport to create file based databases when the user wants to start a new database.

Can database indexes be specified in mapping files such that SchemaExport automatically builds them? It looks like it should be possible according to nhibernate-mapping-2.0.xsd, which states that property tags may contain an "index" attribute of type string. However this attribute doesn't seem to be documented so I'm not sure if it refers to database or collection indexing.

What about multi column indexes? Based on this post http://forum.hibernate.org/viewtopic.php?t=944578, it sounds like I probably need to manually create them after SchemaExport.

On a slightly different topic, is it work adding indexes to all my foreign key columns when using SQLite?


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.