-->
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: Xdoclet generated file under source control
PostPosted: Wed Aug 25, 2004 12:28 pm 
Newbie

Joined: Tue Aug 03, 2004 11:34 am
Posts: 8
Hi,
I'm using Hibernate with XDoclet,
And i wonder if in general it's a good idea or not to put xdoclet generated files (like *.hbm.xml) under source control or if only java file are sufficent?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 26, 2004 1:59 pm 
Beginner
Beginner

Joined: Wed Oct 01, 2003 3:57 am
Posts: 33
Location: Alpharetta, Georgia
I always have my generated files, whether *.xml or *.hbm.xml or whaterver -- output to a directory (such as ${basedir}/target) that is not checked in/out of the repository. As a policy anyway

Every time you regenerate your mapping files based on changes made to one Java class all of your hbm.xml files are "touched", particularly if you tell your schema-export to use force.
It's a lot easier to just checkin the changed Java source, less opportunity for confusion. If other people are sharing the repository the timestamps on the generated files may cause their sandbox version to miss regenerating a file that it should have.


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.