templates.Beans.xpt Maven / Gradle / Ivy
?IMPORT dom?
?IMPORT core?
?EXTENSION extensions::Names?
?EXTENSION extensions::EcoreUtil?
?EXTENSION extensions::EntityExtension?
?EXTENSION extensions::Properties?
?EXTENSION org::openxma::dsl::common::extensions::LogUtil?
?DEFINE main FOR Model?
?info("Write gen-service-context.xml")?
?FILE "gen-service-context.xml" OUTLET_GENERATED_RESOURCES-?
?FOREACH getAllServicesFromResourceSet().getQualifiedClassName().sortBy(e|e).toSet() AS serviceClassName-?
?ENDFOREACH-?
?FOREACH getAllDataViewsFromResourceSet().sortBy(e|e.name) AS dataView-?
?IF !dataView.resourceSet().hasProperty(dataView.model().name+"_dtoAssemblerFactory")-?
?dataView.resourceSet().setProperty(dataView.model().name+"_dtoAssemblerFactory",dataView.model().name)-?
?ENDIF-?
?ENDFOREACH-?
?ENDFILE?
?info("Write gen-dao-context.xml")?
?FILE "gen-dao-context.xml" OUTLET_GENERATED_RESOURCES-?
?FOREACH getAllDaosFromResourceSet().getQualifiedClassName().sortBy(e|e).toSet() AS daoClassName-?
?ENDFOREACH-?
?ENDFILE?
?ENDDEFINE?