> Here is a dtd that may work for jbosscmp-jdbc, based on a 
> large example
> Dain sent me.
> 
>  Except for a couple of "description" typos, the psgml parser 
> apparently
> not liking empty elements and one question, I think it agrees 
> with the doc
> Dain sent.  2 things:
> 
> - There is one 
>                       <property>
>                               <property-name>zip</property-name>
> <!--really column name missing?-->
>                       </property>
> 
> 
> Is column-name really optional?

Yep, it is optional.
 
> - I think there may be a problem with correlating between elements, I
> haven't thought about it hard enough to decide:
> <!ELEMENT  ejb-relation (ejb-relation-name, 
>                         (foreign-key-mapping | table-mapping))>

Correct.
 
> <!ELEMENT  foreign-key-mapping
>                         (ejb-relationship-role, 
> ejb-relationship-role)?>

Correct.
 
> <!ELEMENT  table-mapping(table-name, create-table, remove-table,
>                          read-only, time-out, select-for-update,
>                          pk-constraint, ejb-relationship-role*)>

Should be:

<!ELEMENT  table-mapping(table-name, create-table, remove-table,
               read-only, time-out, select-for-update,
               pk-constraint,
               (ejb-relationship-role, ejb-relationship-role)?)>

> <!ELEMENT  ejb-relationship-role
>                         (ejb-relationship-role-name,
>                          (foreign-key-fields | 
> table-key-fields))>
> 
> 
> 
> Is the foreign-key-mapping choice correlated with the 
> foreign-key-fields
> choice?

yes. I guess that is impossible to enforce with a dtd. I'll think about how
changing it.

> Also, can you set up a 3-way table-mapping with more than 2
> ejb-relationship-role?
no 
> 
> 
> thanks
> david jencks
> 

Thanks for the work.  I'll read the DTD over in detail later.

-dain

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to