-->
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: Override EntityPOJOClass
PostPosted: Mon Apr 28, 2008 4:58 pm 
Newbie

Joined: Mon Apr 28, 2008 4:32 pm
Posts: 2
I'm reverse engineering a database to JPA annotated java source. Is there any way to override generateAnnIdGenerator method in EntityPOJOClass.java?

I want to pass in a value for the generator in a similar way to the way that the strategy and strategy properties are passed in. At the moment the GenericGenerator name is hardcoded as "generator" and the GeneratedValue generator value is hardcoded as "generator".

I'd like to have custom names that were determined in a custom reverse engineering strategy class.

Is there any way to do this without building hibernate tools from source having made the changes myself?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 28, 2008 6:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no - feel free to submit a patch that fixes the broken generateannidgenerator.

_________________
Max
Don't forget to rate


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.