-->
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: Can SchemaExport create indexes?
PostPosted: Wed Feb 15, 2006 2:09 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Hibernate version: NHibernate 1.0.2

Does anyone know if there is a way to tell SchemaExport to create indexes. For example, say I have a Person object and I want the Name property to have a non-unique index on it. I noticed that there is an "index" attribute on the "property" element which I tried setting, but, it doesn't seem to work.

Code:
<property name="Name" index="Name"/>

I'm using SQL Server 2005 Express. Currently, I'm just creating the indexes using ADO.NET, but, I wanted to check to make sure I'm not overlooking an easier way to do it.


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.