Fornax-Platform
Forum

 « Return to Thread: valueobject collection private

Re: valueobject collection private

by Patrik Nordwall :: Rate this Message:

Reply to Author | View in Thread

... or if you would like to generate that for all, then you add this snippet to your src/main/resources/templates/SpecialCases.xpt

«AROUND templates::DomainObject::manyReferenceSetter FOR Reference»
    public void set«name.toFirstUpper()»(«getCollectionInterfaceType()»<«getTypeName()»> «name») {
        this.«name».clear();
        this.«name».addAll(«name»);
    }
«ENDAROUND»

 « Return to Thread: valueobject collection private