-->
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: How to externalize values in jdbcconfiguration?
PostPosted: Tue Aug 14, 2007 5:32 pm 
Newbie

Joined: Tue Aug 14, 2007 5:22 pm
Posts: 1
I'm reverse engineering like crazy... is working OK so far, but I'm looking for a clean way to externalize values in jdbconfiguration.

My Ant script looks like this:

Code:
<target name="generate.dao" depends="init" description="generate JPA / Hibernate artifacts">
      <hibernate.tool destdir="dao">
      <jdbcconfiguration propertyfile="database/nsdb/database.properties"/>   
        <hbm2java jdk5="true" ejb3="true"/>      
    </hibernate.tool>
</target>


I have another property file that is used by Spring and Tomcat that contains values such as the connection URL. Those values may be different for each member of our development team. I'd like to use the values from that file, instead of munging the database.properties mentioned above.

Anyone know of a way?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 4:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
eh its ant use a variable, e.g.

propertyfile="${yourownpropertyfile}"

_________________
Max
Don't forget to rate


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.