Jeremy,
I tried reverse-db with various DBs, and finally gave up on it. By the time you try to figure out how to do things, chances are you've already mapped the DB manually.

it's a shame it doesn't really work with DBs like SQL Server, My SQL, and Postgresql. It would in fact cut down a lot on the time it takes to generate the xml, but what can you do... this is beta and the core app is more important :-)

On Monday, Feb 10, 2003, at 16:02 US/Eastern, Jeremy wrote:

OK, now that I know the new version supports MySQL and now that I know that the schema with a MySQL DB would always be represented as empty. I still am not getting what I expect to happen. I connect to my db server, read the database I want to generate classes and mapping for, then save xml. The file generated as repository.xml, is severely lacking in things like mapping. Also, 'Generate Java' doesn't seem to be generating anything at all. I must be missing something very obvious. I am using MySQL 4.0.7 gamma and mysql-connector-java-2.0.14-bin.jar (RH7.3, OJB 0.9.9, J2sdk1.4.1). I am trying to generate the mapping and java classes for an existing db.

Here is all I can get the reverse-db tool to accomplish:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE descriptor-repository SYSTEM "repository.dtd">
<descriptor-repository version="0.9.9">
<jdbc-connection-descriptor
jcd-alias="default"
default-connection="true"
platform="XXXX"
jdbc-level="1.0"
driver="XXX"
protocol="XXX"
subprotocol="XXX"
dbalias="XXX"
username="XXX"
password="XXX">
</jdbc-connection-descriptor>


</descriptor-repository>

Sorry to bother with something that is probably obvious, but really there is no documentation at all on this topic, and I am starting to worry that I will have to manually generate the mappings and classes for this big 'ol database.

Thanks, Jeremy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

R

--
Robert S. Sfeir
Senior Java Engineer
National Institutes of Health
Center for Information Technology
Department of Enterprise Custom Applications
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to