The changes that I have found that may need handling are:
- <joined-subclass> has been added
- the allowed values for <composite-id> has changed
- <many-to-one length> has been removed
- <key-many-to-one> has been added
- <map generated-key> has been removed
- <array generated-key> has been removed
- <many-to-many length> has been removed
- <key type> has been removed
- <generated-key> has been added
- <index-many-to-many> has been added
- <cache> has been removed
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
Gavin King wrote:
Firstly and most importantly, the XDoclet module needs to be updated to support the new DTD (hibernate-mapping-1.1.dtd). The biggest and most important change in this is support for the <joined-subclass> mapping style. However there are also a couple of smaller changes (eg. <composite-id><property> was changed to <composite-id><key-property>, <composite-id><key-many-to-one> ). I don't expect it would be very difficult to extrapolate these changes from the current functionality. <joined-subclass> is substantially similar to <subclass>, with the exception that it has the required <key> subelement.Gavin