Hello everyone,

I was looking at the OJB tutorial and realized that two mapping files are
provided for the same Table-Class.

- Situation 1
    . in the package org.apache.ojb there is the usual OJB.properties, and
this file sets the also usual repository.xml as the mapping file.
    . the repository.xml includes several other xml mappings, among them the
repositor_jdo.xml.
    . the repository_jdo.xml contains a mapping for the Product (Table and
class)

- Situation 2
    . a file called Product.jdo can be found in the package
org.ojb.apache.tutorial5, and this file has a commented section related to
database mapping, in some points equivalent to those provided by
OJB.properties

 <!--extension vendor-name="ojb" key="dbplatform" value="hsqldb"/>
 <extension vendor-name="ojb" key="dbjdbc-level" value="2.0"/>
 <extension vendor-name="ojb" key="dbdriver" value="org.hsqldb.jdbcDriver"/>
 <extension vendor-name="ojb" key="dbprotocol" value="jdbc"/>
 <extension vendor-name="ojb" key="dbsubprotocol" value="hsqldb"/>
 <extension vendor-name="ojb" key="dbalias" value="../OJB"/>
 <extension vendor-name="ojb" key="dbusername" value="sa"/>
 <extension vendor-name="ojb" key="dbpassword" value=""/-->

My questions:

1 - Do I really need to maintain both mappings?? (repository.xml and *.jdo
files??)
2 - In case I can use a mapping similar to the one in Product;jdo file
(check above), do I need to provide it in every *.jdo file (package or class
related) or is there a place where I can put these mappings that will fit to
the JDO RI as a whole?

Thanks in advance,
Daniel


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

Reply via email to