-->
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.  [ 5 posts ] 
Author Message
 Post subject: How to generate annotations?
PostPosted: Tue Jun 26, 2007 1:28 pm 
Regular
Regular

Joined: Wed May 02, 2007 2:42 pm
Posts: 101
Hey,

I am looking for a tool or some ideas (like velocity) that will help me to generate orm annotations on my Pojo classes.

Can you please give me some ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 29, 2007 10:43 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
http://tools.hibernate.org

_________________
Emmanuel


Top
 Profile  
 
 Post subject: I dont see there an option to create annotation on existing
PostPosted: Sun Jul 01, 2007 4:10 pm 
Regular
Regular

Joined: Wed May 02, 2007 2:42 pm
Posts: 101
pojo classes or UML.

I try to read on AmdroMDA , but i think it is only with hibernate 2.2


Top
 Profile  
 
 Post subject: I dont see there an option to create annotation on existing
PostPosted: Sun Jul 01, 2007 4:10 pm 
Regular
Regular

Joined: Wed May 02, 2007 2:42 pm
Posts: 101
pojo classes or UML.

I try to read on AmdroMDA , but i think it is only with hibernate 2.2


Top
 Profile  
 
 Post subject: Re: How to generate annotations?
PostPosted: Sun Jul 01, 2007 4:18 pm 
Newbie

Joined: Fri Jun 29, 2007 12:54 pm
Posts: 5
avihaimar77 wrote:
Hey,

I am looking for a tool or some ideas (like velocity) that will help me to generate orm annotations on my Pojo classes.

Can you please give me some ideas?



Using hbm2java to generate the java pojos from the hbm files can be extended. Look inside the hibernate-tools.jar. THere are freemarker templates in there than can be modified. Then in your ant task you can point the template directory to where your customized templates are.


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