Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,
I am trying to make a generic code that. Can be called by any code,and will take a backup
Of the backend DB.

I don't want to used
1) jdbc type. 1-4 drivers.
2)hibernate individual table class.to make it generic.

I can get the table schema and pk,fk all.
I also got hibernate table and column alias name.but not able to
Form a successfull. "From <table>" query which. Can give me the full
Column value as list of string array,insted its returning list of that table object.
(but i don't want to use table definition.
And also it is not giving the foreign key column value insted giving that table object
Which is natural.

I didn't found any code in hibernate in net that can export any db to sql
By just taking hibernate db credential.



Please help.
Posted
Updated 6-Jun-13 10:27am
v2
Comments
shankha2010 7-Jun-13 5:35am    
Hi,
Thanks for the link.Its providing how to get db schema [DDL].Actually I already have a code for that, I want a way to get table content.

1 solution

JAVA code required by you can be found [HERE].

Note :- I have not tested this code and hence not sure about its correctness however you can get an idea for sure.

Regards,
Sudhakar
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900