Okay, I have gone through the Hibernate schema and the Xdoclet xdt and have I made the changes that I *think* brings the module in line with changes made for 1.1. I have attached the xdt and would appreciate if those of you who are more familiar with these could double check what I have done. Search on 'JRS' to find the places I made modifications; there are only five. Note, these are only the chnages to reflect what has been deprecated in the schema migration to 1.1. In the next round of work I will tackle adding support for new features. Please see my remarks in line below for guidance of the changes.

After I get some feed back on this I will update the unit test to reflect these changes and make certain everything actually runs. Then I will commit this stage back to cvs.

- joel

Joel Rosi-Schwartz wrote:
I have diff'ed  hibernate-mapping.dtd and hibernate-mapping-1.1.dtd. Many of the changes seem to be because you have tightened up the schema going from #IMPLIED to explicit values in many places. Do any of these require changes to the the hibernate xdt in ...xdocklet.resorces?

The changes that I have found that may need handling are:
  1. <joined-subclass> has been added
  2. the allowed values for <composite-id> has changed
  3. <many-to-one length> has been removed 
removed from xdt.
  1. <key-many-to-one> has been added
  2. <map generated-key> has been removed
found no support in xdt
  1. <array generated-key> has been removed
found no support in xdt
  1. <many-to-many length> has been removed
removed from xdt.
  1. <key type> has been removed
removed from xdt.
  1. <generated-key> has been added
  2. <index-many-to-many> has been added
  3. <cache> has been removed
removed from xdt.
Is this list complete? Which of these changes require addition, removal or change to the xcdoclet subtasks?

I can not find any reference to composite-id in hibernate xdoclet, so I am assuming that it something that needs support added rather than modified. Is this accurate?

I am going to move on and look at how the hibernate dtd correlates to the xdoclet dtd, but some guidance and insight will save me some time and effort. In the meantime I am finding it valuable to gain an understanding of the hibernate schema, I am certain that will have a payback later in my projects. One moan however, I wish you had used Xschema I am really rusty at dtd. (This is not intended to start a meaningless thread on the pro and cons of using dtd vs. xschema, there are volumes filled with that one already ;-)

 - joel





Attachment: hibernate.tools.xdt.zip
Description: Zip compressed data

Reply via email to