-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to add annotation thrue reverse engineering
PostPosted: Thu Jul 16, 2009 12:48 pm 
Newbie

Joined: Thu Feb 02, 2006 10:14 am
Posts: 9
Hi,

I would like to add this annotation:

Code:
@org.hibernate.annotations.Entity(dynamicInsert = true)


to class generated in process of reverse engineering.
I don't want to edit manually class after being generated.
I'm not using ...hbm.xml files + class but class + annotation.

How can I do it?


Regards,
Adam.


Top
 Profile  
 
 Post subject: Re: How to add annotation thrue reverse engineering
PostPosted: Thu Jul 16, 2009 12:59 pm 
Senior
Senior

Joined: Tue Aug 01, 2006 9:24 pm
Posts: 120
You should say which tool you are using. Also, if it's netbeans or eclipse this is the wrong place to ask that.

_________________
Please rate my replies as I need points for all of my questions also.


Top
 Profile  
 
 Post subject: Re: How to add annotation thrue reverse engineering
PostPosted: Thu Jul 16, 2009 1:13 pm 
Newbie

Joined: Thu Feb 02, 2006 10:14 am
Posts: 9
Hi,

I'm using hibernate tools and as configuration file based on spec:
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd
As result I'm generating java classes with annotation.

Regards,
Adam.


Top
 Profile  
 
 Post subject: Re: How to add annotation thrue reverse engineering
PostPosted: Thu Jul 16, 2009 1:28 pm 
Senior
Senior

Joined: Tue Aug 01, 2006 9:24 pm
Posts: 120
Hibernate Tools uses FreeMarker as a templating engine for it's pojo generation.

You can edit the template to add that line in.

https://www.hibernate.org/hib_docs/tool ... le/#d0e396

_________________
Please rate my replies as I need points for all of my questions also.


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