I m searching for a methode to read a database schema with java: Tables,
Relations, Tablefield, Primary Keys, NULL/ NOT Null. did u know any consept.
did u know a method with hibernate
Thomas Kellerer - 13 Nov 2005 17:58 GMT
RADES via JavaKB.com wrote on 13.11.2005 18:54:
> I m searching for a methode to read a database schema with java: Tables,
> Relations, Tablefield, Primary Keys, NULL/ NOT Null. did u know any consept.
> did u know a method with hibernate
Start with reading the manual:
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html
gimme_this_gimme_that@yahoo.com - 16 Nov 2005 00:25 GMT
Middlegen (a hibernate utility) already does this. It even creates an
ER diagram.
It reads your database and creates hbm.xml files from your tables.
It does one-to-many relationships too.