Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Export insert SQL Statements !!!  RSS feed

 
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: 17309
11
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!