• 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: 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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!