• Post Reply Bookmark Topic Watch Topic
  • New Topic

need to change the database

 
kenji kunoichi
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to change the database I am using now . My application runs in spring-hibernate framework . Now to change the database which is the xml file I need to change ?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36019
427
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean change the DDL/table structure, right? You can do so in two ways:

1) Run the SQL alter statement at the database command line and update your Java entities.
2) Just update the Java entities and set the hibernate.hbm2ddl.auto property.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!