-->
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: Override annotation howto
PostPosted: Mon Sep 03, 2007 6:03 am 
Newbie

Joined: Fri Apr 13, 2007 8:11 am
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2.2.ga annon, 3.2.1.ga

I need to override the @javax.persistence.TableGenerator implementation in Hibernate. Because I have a leagacy system that needs to have the valueColumnName to contain the last value used and not the next value to be used.

is there a convenient way? I looked at the AnnotationBinder but it is a little to complex to understand easily.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 04, 2007 8:27 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
No you'll have to write a custom generator (mainly a copy paste of the TableHiLoGenerator), and use @GenericGenerator

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 06, 2007 4:58 am 
Newbie

Joined: Fri Apr 13, 2007 8:11 am
Posts: 2
emmanuel wrote:
No you'll have to write a custom generator (mainly a copy paste of the TableHiLoGenerator), and use @GenericGenerator


Thanks!


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.