Hi roberto,

diaroby wrote:
Hi again,
I have started to learn the OJB basics in these days, but I have a lot of
problems;
for example, how does reverse-db tool work? I'm not be able to produce
repository.xml and java classes from a live DB, that I think is the work the
tool does;
where I find any docs on it?
It's not documented yet, as it is a first draft implementation. Don't expect it to work without problems.

howto:
1. start the reverse-db tool with bin/build.sh reverse-db (bin\build.bat reverse-db)
2. Connect to your target db by clicking on the "Connect to Database" button. In the popup dialog enter
- driver class (e.g. "org.hsqldb.jdbcDriver")
- JDBC Url (e.g. "jdbc:hsqldb:OJB")
- User (e.g. "sa")
- password (e.g. "")
Press the "connect" button to connect to the DB

3. Read in the database catalog information by pressing the "Read" button.

4. Manipulate mapping details
- expand the treeview on the left
- click on a table or column entry
- on the right side you find a simple editor for maipulating the default mapping info

5. safe the repository.xml by clicking on "Save XML"
(note: currently the generated format is out of date! there is a xslt file to transform it to a 0.9 compliant format. src/test/org/apache/ojb/0.8to0.9.xsl)

6. Generate entity classes by clicking on the "Generate Java" button.

cheers,
Thomas


Thanks a lot

--roberto porcelli


--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>






--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to