Hibernate 3.2:
Hi folks,
my problem is:
Within our application (running on production server) we have a table entry with dubious values. I have the corresponding Pojo loaded (we're using inheritance and subcomponents). Since this is a production environment, we cannot play around with the data. Instead I would like to have something like
Code:
String sql = pojo.createSqlInsertCommand(); // not HQL !!
writeSqlToFile( sql );
If this would be possible, we could simply insert the selected pojos in a test environment and do/redo whatever we need to fix our problem.
(this would be extremely handy for the setup() of test cases too, since our application is to complicated to write this insert-command by hand.)
Perhaps this is an easy question, but I could not find anything matching within docs or this forum.
Thanks in advance
Andreas