-->
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: Index and unique-key
PostPosted: Fri Mar 18, 2005 5:22 am 
Newbie

Joined: Fri Mar 18, 2005 4:54 am
Posts: 1
How do I add an index onto a regular property? I've looked through most of the documentation, found nothing at first, went through the dtd, found what the attribute should be, and checked the docs again, found minor mention in chapter 15 (toolset).

<property name="creationTime" access="field">
<column name="creation_time" not-null="true"
index="true" sql-type="timestamp" />
</property>

(Yes, I have tried values apart from 'true', assuming that it forms a composite index.)

I cleared the database, restarted the app, and then did a database dump:

`creation_time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

is the only part that mentions "creation_time".


Could someone please tell me why there appears to be no sign of the index, or direct me to some documentation (that I certainly have had no luck finding) that deals with index/unique-key?


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.