All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.Beans.xpt Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
?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?







© 2015 - 2024 Weber Informatics LLC | Privacy Policy