Re: AW: [Objectbridge-jdo-dev] jdo extension
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2002-05-24 19:51:00
|
Hi Travis, tr...@th... wrote: > How does this sound for starters anyways: > > JDO Extensions > > Set the referenced table using table-name as an extension of the class. > > <class name="Product" identity-type="application"> > <extension vendor-name="ojb" table-name="Product"/> > > Set the referenced column in the above table using column-name and optionally a jdbc-type. jdbc-type matches the ojb type mapping. > > <field name="stock"> > <extension vendor-name="ojb" column-name="stock" jdbc-type="INTEGER"/> > </field> > ACK! But I think its better to use the same syntax as in the (1.0) repository.dtd: <class name="Product" identity-type="application"> <extension vendor-name="ojb" table="Product" /> <field name="stock"> <extension vendor-name="ojb" column="stock" jdbc-type="INTEGER"/> </field> This will make it much easier to see which *.jdo attribute matches to a repository.xml attribute. > If no extensions are specified then the following default mappings will occur: > > table-name=Class.getName() > > column-name=field name > > jdbc-type=equivalent java type > > ACK! What about primary keys and foreign keys for references and collections? Any ideas about default naming conventions? cheers, Thomas |