Hi,
I know the support for ValueObject in the Spring2 Cartridge is not ready.
But I don't understand the generation of the XML file
dozer-bean-mappings.xml.
In the reference model there are five VOEntity classes, all of them has a
Key attribute id and three normal attributes field*. The dependecy between
the VOEntity4 and VoEntity3Entity4Assembler is a Class2Class dependency. So
in my understanding of the template
org.fornax.cartridges.uml2.spring.templates.context.Mappings in
dozer-bean-mappings.xml must be something like this:
<mapping>
<class-a>test.valueobject.perproperty.VoEntity4</class-a>
<class-b>test.valueobject.perproperty.VoEntity3Entity4Assembler</class-b>
<field>
<a>id</a>
<b>idVoEntity4</b>
</field>
<field>
<a>field1</a>
<b>field1VoEntity4</b>
</field>
<field>
<a>field2</a>
<b>field2VoEntity4</b>
</field>
<field>
<a>field3</a>
<b>field3VoEntity4</b>
</field>
</mapping>
</code>
but in the generated file is only this:
<mapping>
<class-a>test.valueobject.perproperty.VoEntity4</class-a>
<class-b>test.valueobject.perproperty.VoEntity3Entity4Assembler</class-b>
<field>
<a>id</a>
<b>idVoEntity4</b>
</field>
</mapping>
So only the key attribute is in the mapping file, the other attributes are
missing.
I have already debugged the template genClass2ClassMappingEntries and find
out that the list ((uml::Class)this.client.get(0)).ownedAttribute only
contains the Key attribute, the other attributes are missing.
I think the problem of missing attributes is also the reason why the other
mapping informations in the dozer-bean-mapping.xml are wrong or missing when
you generate the reference model (e.g. the mapping information for
VoEntity1Entity2Assembler)
For information: I use the SVN snapshot of the Fornax Cartridges. Spring2
revision is 3215.
Thanks for help
Nils
--
View this message in context:
http://www.nabble.com/-Spring2--ValueObject---dozer-bean-mappings.xml-tp16300082s17564p16300082.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer