-->
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.  [ 2 posts ] 
Author Message
 Post subject: Support for custom ID using annotations
PostPosted: Fri Apr 08, 2005 11:29 am 
Beginner
Beginner

Joined: Thu Dec 25, 2003 8:08 am
Posts: 26
Hello,

Does the hibernate annotations support declaring a custom ID generator (custom class) using annotations.
Using XDoclet I could define it as follows:
Code:
   * @hibernate.id
   *  generator-class="mapping.IdGenerator"
   *  column="Id"
   *  unsaved-value="0"


Hibernate version:
Hibernate 3.0, annotations 3.0 beta1

Eyal


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2005 11:53 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
http://opensource.atlassian.com/projects/hibernate/browse/HBX-77

_________________
Emmanuel


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