Nested composite element
The 'name' attribute is not getting set on the nested-composite-element...I presume because it is using the same logic as a Component which doesn't require that attribute.
I have tried some things to get it to apply the name but get lost in the maze of visitors.
Can a workaround be suggested?
Comments are currently closed for this discussion. You can start a new one.
2 Posted by nichols.mike.s on 26 May, 2010 06:43 PM
K..got this to pass inside the OneToManyTester, adding a nested component on the component. I am sprinting so no time to clone/patch/pull-request...will do soon:
Changed inside XmlCompositeElementWriter:
Support Staff 3 Posted by Paul Batum on 30 May, 2010 10:23 AM
Hi Mike,
I've applied your fix to my repository. I couldn't quite get your test to
compile but I wanted to write a lower level one anyway so I did so. Your fix
should be in the official trunk in a week or so.
Thanks!
4 Posted by nichols.mike.s on 30 May, 2010 04:24 PM
Wow Paul thanks! I was planning on contributing a patch the formal way soon
but you beat me to it.
I have another bug I need to patch so I'll try to contribute that soon.
Collections of components are trying to be mapped as collections of entities
(FNH isn't applying the IsComponent rule to ChildType's) so one is required
to do an override for every entity that has those.
// Add your reply above here
Support Staff 5 Posted by Paul Batum on 31 May, 2010 10:37 AM
Cool, send me a pull request when you've made your other change! Cheers.
Paul Batum resolved this discussion on 31 May, 2010 10:37 AM.