Hi Rainer & Tom,

i just read about the codegenerator and i also think that it could be quite useful.
I'd be happy if i could work on that issue with you.

Regards
Benjamin

Rainer Döbele schrieb:

Hi Thomas,

we’re glad to hear that you like our approach.

One way to use Empire-db is to create Data model in code first, and let Empire-db create the DB objects.

However if the DB already exists it is certainly quite tedious to write the data model classes from scratch and in this case a code generator would indeed be very useful.

We have been thinking about a code generator for creating the data model classes for quite some time but never got around creating one.

So what you have been working on sounds very interesting and I’d love to hear more about it.

What database systems have you tried it with and now are you accessing the data dictionary?

Would you be willing to send us your source code so we can play around with it ourselves?

That would be really cool.

If we like it and if you would be willing to donate your code to the Apache Software Foundation we will consider providing it with a future release.

How do you think about that?

Regards

Rainer

Thomas Poling wrote:

*re:* Code Generator

I found Empire DB about a month ago and love it.

I've been waiting for this type of solution to Java persistence since JDBC came out! Long wait :)

For educational purposes I decided to model some of the tables I use at work to try it out. Because of the number of tables and columns, I wrote a very simple code generator to create the table and record classes based on DB meta-data. It was simple and it works well. Using Empire DB is much easier and more flexible than using those big ORM frameworks.

Does anyone know of any other code generators for Empire DB out there? Mine is rather limited because I just wrote it to help in learning Empire DB. Ultimately, my goal is to convince my project manager to ditch TopLink and go to Empire DB. Having a robust code generator so we can have our Java persistence running almost out of the box would help in achieving this goal.

Thanks, Tom


Reply via email to