You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Naveen Singh <ns...@asg.sc.edu> on 2003/11/03 18:46:45 UTC
tool for generating mapping file and persistent classes
Hi,
I am new to OJB. I have a database from which I want to generate mapping
file( repository.xml) and the persistent java classes. I found 2 tools
mentioned at OJB site. One is reverse-db and other Eclipse plugin.
I tried both.
In the reverse-db tool everything is fine, except, I cannot save the
mapping file and load it later to generate java classes. I have to
generate xml file and java classes at the same time. Tell me if I am
missing something. There is no way to save the mapping file and load it
later to generate the java classes.
Also, I have a smalldatetime field in SQLServer database. When I
generate mapping file it makes it as a property of type
java.sql.timestamp. I want to make it a java.util.date type.
I saved the mapping file and changed the attribute to DATE type and then
said generate java classes but it still makes it a timestamo type
property. Please tell how to do it?
In the Eclipse plugin, It generate the mapping file but it doesn't
generate the "reference-descriptor" tags fro foreign keys. It makes all
the column as "field-descriptor". Any insight how to generate the
reference-descriptor tags?
Thanks
Naveen
Re: tool for generating mapping file and persistent classes
Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Naveen Singh dijo:
> Hi,
>
> I am new to OJB. I have a database from which I want to generate mapping
> file( repository.xml) and the persistent java classes. I found 2 tools
> mentioned at OJB site. One is reverse-db and other Eclipse plugin.
Try druid - http://druid.sf.net/
But download it from the CVS. I am tuning the OJB generator. In the Java
Beans generator I also missed the reference descriptor. I am working on it
will do it right now. So in few hours it will generate good Java Beans too
for OJB.
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org