I thought of it as a plain string, but your idea with parameters and
separators is even better.
We add convenient extension functions so it could look like this:
«AROUND templates::DomainObject::jpaAnnotations FOR Attribute»
«IF hasHint("xml")»
@javax.xml.bind.annotation.XmlElement(required=true«IF
getHintParam("xml", "default") != null»,
defaultValue=getHintParam("xml", "default")«ENDIF»)
«targetDef.proceed()»
«ENDIF»
«ENDAROUND»
Oliver has done parsing for the validation that we might be able to reuse.
/Patrik
--
View this message in context:
http://www.nabble.com/New-concept-tp24252062s17564p24269489.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer