-->
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: index attribute in <property> does not create database
PostPosted: Wed Feb 07, 2007 12:10 pm 
Newbie

Joined: Fri Sep 29, 2006 6:52 am
Posts: 17
Hi,

when adding an index attribute to the property node like:

<property name="Name", length="20", index="Name_idx" />

then SchemaExport will not create an index. This only works for the index attribute in the <column>-Node.

In the changelog of version 0.99.1.0 (1.0-rc1) I found:

"SchemaExport now generates SQL to create an index when index attribute is used on <property> or <column>"

Sounds like this should work. Is it a bug or is there another reason why no database index is created when index is only specified in the property node?

Tobias


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 07, 2007 2:27 pm 
Contributor
Contributor

Joined: Sat Sep 24, 2005 11:25 am
Posts: 198
looks like a bug, please file a JIRA about it


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 08, 2007 8:49 am 
Newbie

Joined: Fri Sep 29, 2006 6:52 am
Posts: 17
Ok, done:

http://jira.nhibernate.org/browse/NH-897

I've attached a patch that adds a unit test to reveal the problem and fixes it in the HbmBinder.

Tobias


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.