-->
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: How add a specific annotation to a property using hbm2java?
PostPosted: Fri Jan 25, 2008 11:07 am 
Newbie

Joined: Thu Jan 24, 2008 12:41 pm
Posts: 1
I'm using hibernate-tools 3.2.0GA.
I'm doing reverse engineering with hbm2java to produce pojos for trails (http://www.trailsframework.org/).
I need to add an annotation (with some attributes) on some properties.
Specifically I need to add something like:
Code:
@PropertyDescriptor(index=3,format="MM/dd/yyyy",displayName="First Cooked On")

The only way I found is modifing pojo/Ejb3PropertyGetAnnotation.ftl.
Is there any simpler way?

Alberto


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 25, 2008 2:51 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
No - and how could it be easier ?

you just copy that file and adjust it and point to the root dir for pojo/ in the templatepath attribute.

_________________
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.