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.
we are not using hibernate-cfg.xml for DB connection,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
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,


Reply With Quote


Bookmarks