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

com.clickntap.build.app.ftl Maven / Gradle / Ivy

There is a newer version: 1.189
Show newest version
[#assign entities = this.projectElement.element("entities")]
[#if entities??]

[#assign prefix = entities.attributeValue("prefix")]
[#list entities.elements("g")?reverse as g]
[#assign package = g.attributeValue("name")]
[#assign xml]


[#list g.elements("entity")?reverse as entity]
	[#assign name = entity.attributeValue("name")?lower_case]
	[#assign className = g.attributeValue("name")+"."+entity.attributeValue("name")]

	
		 [#noparse]${[/#noparse]${name}.clear()} 
		 [#noparse]${[/#noparse]${name}.create()} [#noparse]${ws.setForm(ws.nextForm!"")}[/#noparse] 
	
	
		 [#noparse]${[/#noparse]${name}.read()} 
		 [#noparse]${[/#noparse]${name}.update()} [#noparse]${ws.setForm(ws.nextForm!"")}[/#noparse] 
	
	[#list entity.elements("field") as field][#if field.attributeValue("name")?contains("password")]
  	[#assign passwordName = this.getter(field.attributeValue("name"))?replace("get","")]
	
		 [#noparse]${[/#noparse]${name}.read()} 
		 [#noparse]${[/#noparse]${name}.execute("${field.attributeValue("name")?replace("_","")}")} [#noparse]${ws.setForm(ws.nextForm!"")}[/#noparse] 
	
	[/#if][/#list]
	
		 [#noparse]${[/#noparse]${name}.read()} 
		 [#noparse]${[/#noparse]${name}.delete()} [#noparse]${ws.setForm(ws.nextForm!"")}[/#noparse] 
	

[/#list]

[/#assign]
${this.save(xml,"src/main/webapp/WEB-INF/smart-app/app-"+package+".xml")!}
[/#list]


[/#if]
	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy