Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding column in a table (dynamically) using hibernate and mysql

 
yogesh totare
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can u help me with the way to add a column in to a existing table using hibernate?? Basically i wanted to add few more columns in my table based on some criterion but as we need to map those enteries in the mapping file and do the corresponding changes in the java classes as well.. m not able to find the way for that...Please let me know your views,

Rergards
 
Steve McCann
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I don't believe you can do this using Hibernate. It's simply a mapping tool - the database tables and Java classes must already exist before they can be mapped together.

Steve
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic