-->
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: Domain code pojo's how to auto add @XmlRootElement
PostPosted: Sat Jun 02, 2012 12:48 pm 
Newbie

Joined: Tue Feb 06, 2007 1:37 am
Posts: 1
Hi,

I'm using the hibernate tools in eclipse to generate domain code pojo's, i'd like to use the same set of pojo's to write the xml, is there any way to auto add an @XmlRootElement to each of the pojo classes when they are being generated.

Thanks,
Tim.


Top
 Profile  
 
 Post subject: Re: Domain code pojo's how to auto add @XmlRootElement
PostPosted: Fri Aug 03, 2012 4:00 am 
Senior
Senior

Joined: Tue Aug 04, 2009 7:45 am
Posts: 124
Sure, probably the easiest way is to use custom templete.
Look at Ejb3TypeDeclaration.ftl


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.