Re: Hibernate - Always generate List?
Hello,
what about to overwrite the extension:
org::fornax::cartridges::uml::javabasic::m2t::DataType::isSet(uml::MultiplicityElement element)
If the new implementation return false allways a list should be generated.
You can do this in a non invasive way by using aop.
Or you can use the preProcessor (or a own component) to write a model to model transformation.
Set all relevant order or unique properties.
Note: Only one of the bouth properties 'unique' or 'ordered' is used.
You can configure it with setting this property:
#Desides if a collaction is realized as 'set' or a 'list'
#Collections with UML-Flag 'isOrdered' is mapped to List and mapped to Set else
list.set.property = 'order'
#Collections with UML-Flag 'isUnique' is mapped to Set and mapped to List else
#list.set.property = 'unique'
Did I help you?
Regards
Darius