kz.facilities.common-java.1.3.41.source-code.Java.profile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-java Show documentation
Show all versions of common-java Show documentation
DSL based modeling framework - facilities common java
package org.joinedworks.facilities.common.profiles.java
/* stereotypes */
stereotype findBy applicable for complextype.operation
stereotype findOneBy applicable for complextype.operation
stereotype countWith applicable for complextype.operation
stereotype existsWith applicable for complextype.operation
stereotype updateJust applicable for complextype.operation, relation.operation
stereotype updateWhere applicable for complextype.operation
stereotype deleteWhere applicable for complextype.operation
stereotype create applicable for complextype.operation
stereotype update applicable for complextype.operation
stereotype find applicable for complextype.operation
stereotype findOne applicable for complextype.operation
stereotype execute applicable for complextype.operation
stereotype delete applicable for complextype.operation
stereotype call applicable for complextype.operation
stereotype part applicable for complextype.operation, service.operation
/* strategies */
strategy JavaNamingStrategy implementation="org.joinedworkz.common.java.Strategy"
strategy JavaTypeStrategy implementation="org.joinedworkz.common.java.JavaTypeStrategy"
/* outlets */
outlet generatedJavaSource specialization of StandardOutput
directory = "./src/generated/java"
cleanWholdDirectoryOnCleanBuild = true
/* cartridges */
cartridge DtoCartridge implementation="org.joinedworkz.common.java.DtoCartridge" outlets=generatedJavaSource
/* platforms */
platform Java specialization of Base {
/* add stereotypes by naming convention */
add stereotype findBy where name=findBy*
add stereotype findOneBy where name=findOneBy*
add stereotype countWith where name=countWith*
add stereotype existsWith where name=existsWith*
add stereotype updateJust where name=updateJust*
add stereotype updateWhere where name=updateWhere*
add stereotype deleteWhere where name=deleteWhere*
// add stereotype key where name=*Key
// add stereotype entity where name=*Entity
/* apply cartridges */
apply cartridge DtoCartridge
/* contribute to model elements */
contribute to field {
property javaName: STRING strategy=JavaNamingStrategy
}
contribute to type {
property javaType: STRING strategy=JavaTypeStrategy
}
contribute to relation {
property javaType: STRING strategy=JavaTypeStrategy
}
contribute to simpletype {
override javaType value="java.lang.String"
}
contribute to simpletype {
override javaType value="java.lang.Integer"
}
contribute to simpletype {
override javaType value="java.lang.Long"
}
contribute to simpletype {
override javaType value="java.math.BigDecimal"
}
contribute to simpletype {
override javaType value="java.lang.Boolean"
}
contribute to simpletype {
override javaType value="java.math.BigDecimal"
}
contribute to simpletype {
override javaType value="java.util.Date"
}
// contribute to complextype {
// override tableName value=testTableName1
// }
//
// contribute to complextype.field {
// override columnName value=testColumnName2
// }
//
// contribute to simpletype.field {
// property wrong: STRING value=testColumnName3
// }
//
// contribute to complextype.operation {
// property ctx: STRING value=abc
// }
//
// contribute to operation {
// property findParameter: STRING value=xyz
// }
}