Generate class (getter - setter) from database table - Possible?

Maybe this isn't the right place, but I was wondering if there are any tools or plugins available to generate getters and setters by using a database table structure?

In other words, I'm looking for a tool which let me analize a database table, and subsequently generates the apropriate getter and setter methods.

With regards,

,----[ Robin van het Hof ]
|
| robin.van.het.hof@topforce.com
| technical consultant
| +31 6 288 78 699
|
| topforce bv
| westblaak 180
| 3012 kn rotterdam
| http://www.topforce.com
|
`----

0
3 comments
Avatar
Permanently deleted user

ehm..youi could use relational mapping package (Castor, JDO, OJB, Hibernate etc.)
-m

0
Avatar
Permanently deleted user

I developed pretty powerful API for database reverse engineering. Which
takes database, complementary xml file (which define/suppress any number of
additional tables, columns, foreign keys, attributes, inheritance and
composition relations between tables ....) and build in memory object model
of tables, columns, associations, PKs ....
Then I use velocity to generate what I need.
Right now we generate complete JDO object models from it (with
bi-directional managed relations, cascade deletes ....)
you could integrate it into a IDEA plug-in if you wish. I have not decided
yet whether to open source it or not but I can certainly provide binary and
samples (no docs yet but they are not really needed for simple cases)


"Robin van het Hof" <no_mail@jetbrains.com> wrote in message
news:16818837.1070450653369.JavaMail.javamailuser@localhost...

Maybe this isn't the right place, but I was wondering if there are any

tools or plugins available to generate getters and setters by using a
database table structure?
>

In other words, I'm looking for a tool which let me analize a database

table, and subsequently generates the apropriate getter and setter methods.
>

With regards,

>

,----[ Robin van het Hof ]
|
| robin.van.het.hof@topforce.com
| technical consultant
| +31 6 288 78 699
|
| topforce bv
| westblaak 180
| 3012 kn rotterdam
| http://www.topforce.com
|
`----



0
Avatar
Permanently deleted user

Sounds very promising. I would be interested in trying
out a binary release. If it suits my needs and I don't need to implement it myself I should have saved time to write a plugin.

What could a plugin offer besides database configuration, path to xml, path to templates and a button for generating?
Any ideas?

Kind Regards
Frank Bruch

0

Please sign in to leave a comment.