-->
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.  [ 4 posts ] 
Author Message
 Post subject: error generating index on primay key
PostPosted: Mon Dec 27, 2004 1:23 pm 
Newbie

Joined: Mon Dec 27, 2004 1:18 pm
Posts: 4
Hibernate version:2.6

I have the following xdoclet:
/**
* @hibernate.id
* generator-class="uuid.hex"
* column="ID"
* type="java.lang.String"
*
* @hibernate.column
* name="ID"
* sql-type="CHARACTER VARYING(1024)"
* index="ID_PK"
* not-null="true"
*/

and I get the following xml hbm:

<id
name="id"
column="ID"
type="java.lang.String"
>
<generator class="uuid.hex">
</generator>
</id>
First I run the HibernateDocletTask and then the hbm2ddl.SchemaExport
any ideas on how to get the index?

Thanks

Carlos


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 5:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The last time I looked @hibernate.column did not apply (eg not supported) in combination with the @hibernate.id . Having said that maybe XDoclet 2 has support. If you try XDoclet2 please provide feedback.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 04, 2005 5:48 am 
Newbie

Joined: Mon Dec 27, 2004 1:18 pm
Posts: 4
I had tested with xdoclet 1.2.2 and it does not work


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 04, 2005 8:34 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Yes - thanks for the confirmation. Have you tried XDoclet 2? It is being actively worked on.


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