-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate Code Generation - Changing POJO layout
PostPosted: Tue Apr 17, 2007 8:22 pm 
Newbie

Joined: Tue Apr 17, 2007 8:05 pm
Posts: 5
Hi,

Just wondering if it is (relatively easily) possible to change the layout of the generated POJO code.

I have figured out how to use TableNameStrategy to put my generated classes into the right packages with a bit of renaming on the way, so that is all good (and very handy I might add!).

The next bit I guess is a matter of style... is there any reason for the generated annotations to be put on the getter rather than the private field? Some of the other tools seem to generate on the field, and many of the examples also have the annotation on the field... in terms of style, I think I prefer to have it on the field, unless their is a good reason not to (like you can't do it :-))

Regards
Colin


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.