Generating classes for tables of a data base  
Author Message
Robert Semmering





PostPosted: 2004-12-13 21:40:00 Top

java-programmer, Generating classes for tables of a data base Hi,
I've got an already existing data base (Postgres) which consists of a
couple of tables and connections. There exist also some stored
procedures. Now, how can I get java-classes generated of this
information? Which tool can do this?

I would like to see a class for each table and methods to call stored
procedures or to locate records by their key.


PS. this must be done for c++, too.
 
hughes.matt





PostPosted: 2004-12-14 3:27:00 Top

java-programmer >> Generating classes for tables of a data base For Java there are a ton of solutions. The most popular is an open
source product called Hibernate. Also check out iBatis SQLMaps, or, if
you want a commercial product, TopLink.
I don't know of any application that can created C++ and Java classes.

 
Daniel Rohe





PostPosted: 2004-12-14 16:08:00 Top

java-programmer >> Generating classes for tables of a data base http://boss.bekk.no/boss/middlegen/


"Robert Semmering" <email***@***.com> schrieb im Newsbeitrag
news:41bd9bc9$0$29838$email***@***.com...
> Hi,
> I've got an already existing data base (Postgres) which consists of a
> couple of tables and connections. There exist also some stored procedures.
> Now, how can I get java-classes generated of this information? Which tool
> can do this?
>
> I would like to see a class for each table and methods to call stored
> procedures or to locate records by their key.
>
>
> PS. this must be done for c++, too.


 
 
frebe





PostPosted: 2004-12-14 18:49:00 Top

java-programmer >> Generating classes for tables of a data base You can use http://butler.sourceforge.net to do this.

 
 
hilz





PostPosted: 2004-12-15 1:09:00 Top

java-programmer >> Generating classes for tables of a data base
"Robert Semmering" <email***@***.com> wrote in message
news:41bd9bc9$0$29838$email***@***.com...
> Hi,
> I've got an already existing data base (Postgres) which consists of a
> couple of tables and connections. There exist also some stored
> procedures. Now, how can I get java-classes generated of this
> information? Which tool can do this?
>
> I would like to see a class for each table and methods to call stored
> procedures or to locate records by their key.
>
>
> PS. this must be done for c++, too.

I don't know about c++, but if we're talking about java, Hibernate is the
best solution.
Hibernate is a complete framework for OR Mapping.
If you want a simpler way of doing that, check out the Apache Torque
(subproject of the DB project)
http://db.apache.org/torque/

good luck
hilz