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

Reply via email to