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

How to Export insert SQL Statements !!!

 
Tom Rader
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,


I developed an application using hibernate. Now My client wants that in my application there should be a button called "Export as SQL". When user click on that particular button it should generate the insert sql statements file for the data stored in database.

Please suggest me what would be the possible way to do this.

Regards,

Tom
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I guess you could ask the SessionFactory to give you the insert statements it created when it started up. I think there is a method to call on it to get access to those statements.

Mark
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic