-
1. Re: cmr-fields that return collections shouldn't return null
dsundstrom Mar 7, 2002 7:35 PM (in response to zerosleep)This is an internal error. (a null collection is not being returned)
I have seen this before, and it was caused by a bug in XDoclet where it would create an empty key-fields element in both roles. In the cvs I changed the deployment code to throw an exception if both key-fields elements of a foreign-key mapped relationship are empty, or if either side of a relation-table mapped relationship is empty. -
2. Re: cmr-fields that return collections shouldn't return null
davidjencks Mar 7, 2002 9:57 PM (in response to zerosleep)The problem in xdoclet is that it can't distinguish between
"there are no key fields on this side of the relationship" and "I want Dain's code to generate everything automagically". I added a @jboss:auto-key-fields tag you can add to your cmr accessor markup so you can explicitly select the latter. This is in xdoclet cvs and should be in 1.1.2 coming out perhaps tomorrow. -
3. Re: cmr-fields that return collections shouldn't return null
zerosleep Mar 8, 2002 11:46 AM (in response to zerosleep)Wow, a response right from the source. Thanks Dain! I bought your workbook. Very helpfull so far.
As far as this issue is concerned, merely downloading the latest CVS jboss-all should fix the problem right?
I don't know what "xdoclet" is, guess that makes me a newbie.