Results 1 to 2 of 2
- 08-09-2012, 01:37 PM #1
Member
- Join Date
- Aug 2012
- Posts
- 1
- Rep Power
- 0
How to update database scheema with Hibernate Annotations ?
Hi All,
As of now i am using hibernate.hbm2ddl.auto = update property with .hbm file to update my database scheema. Please let me know if there is any procedure to update db scheema with out .hbm file(i mean with annotations)
Thanks in advance.
- 01-30-2013, 05:35 PM #2
Member
- Join Date
- Jan 2013
- Location
- Berlin
- Posts
- 4
- Rep Power
- 0
Re: How to update database scheema with Hibernate Annotations ?
You can add them to the SessionFactory... eiter by spring context(If you use spring) or by code
Configuration cfg = new Configuration().setProperty("hibernate.hbm2ddl.aut o", "update");
Chapter*3.*Configuration
Similar Threads
-
update database
By manuzerwa in forum New To JavaReplies: 4Last Post: 04-01-2012, 12:35 AM -
Update table in database
By CTheSky in forum JDBCReplies: 3Last Post: 01-30-2011, 04:18 AM -
Update a price in a database
By sandraW in forum New To JavaReplies: 14Last Post: 08-29-2010, 04:41 AM -
Hibernate update function
By ananddevaraj in forum Web FrameworksReplies: 1Last Post: 06-30-2010, 01:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks