-->
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: How to set "hibernate.properties" environment specific
PostPosted: Thu Jul 09, 2009 6:27 am 
Newbie

Joined: Thu Jul 09, 2009 6:20 am
Posts: 1
Hi All,

Greetings,

I would like to know steps for,

How to configure the "hibernate.properties" specific to environment(dev/stage/prod).

we are using .properties file for DB connection utility with below props.

Code:
hibernate.dialect = org.hibernate.dialect.OracleDialect
hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
hibernate.connection.url=jdbc:oracle:thin:@host:port_no:dsn
hibernate.connection.username=username
hibernate.connection.password=password
hibernate.jdbc.batch_size=0


we are not using hibernate-cfg.xml for DB connection but using for other mappings,

I need to put this for specific to the environment, as of now we are using the "hibernate.properties" for every environment, we used to change the db connection everytime whenever we want to deploy to dev/stage/prod envs which is causing issue with other developers, if they are not aware of usage of this process.

Iam using Tomcat server and deploying the war file in to it.

Please let me know your ideas on this.

Thanks,


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.