kz.facilities.common-genesis-mutiny.1.3.28.source-code.MutinyVertx.profile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-genesis-mutiny Show documentation
Show all versions of common-genesis-mutiny Show documentation
DSL based modeling framework - facilities common genesis Mutiny
package org.joinedworks.facilities.common.profiles.genesis.mutiny
import org.joinedworks.facilities.common.profiles.java
/* stereotypes */
/* strategies */
strategy MutinyJavaTypeStrategy implementation="org.joinedworkz.common.genesis.mutiny.MutinyJavaTypeStrategy"
strategy EntityClassNamingStrategy implementation="org.joinedworkz.common.genesis.mutiny.EntityClassNamingStrategy"
strategy TableNameStrategy implementation="org.joinedworkz.common.strategies.TableNameStrategy"
strategy ColumnNameStrategy implementation="org.joinedworkz.common.strategies.ColumnNameStrategy"
/* outlets */
outlet generatedConfiguration specialization of StandardOutput
directory = "./src/generated/resources"
cleanWholdDirectoryOnCleanBuild = true
/* cartridges */
cartridge DtoHandlingCartridge
implementation="org.joinedworkz.common.genesis.mutiny.DtoHandlingCartridge"
outlets=generatedJavaSource
cartridge PersistenceCartridge
implementation="org.joinedworkz.common.genesis.mutiny.PersistenceCartridge"
outlets=generatedJavaSource, generatedConfiguration
/* setting */
setting GenesisMutinySetting implementation="org.joinedworkz.common.genesis.mutiny.GenesisMutinySetting"
/* platforms */
platform GenesisMutiny specialization of Java setting=GenesisMutinySetting {
add stereotype id where name=Id // simple type name 'Id'
/* apply cartridges */
apply cartridge DtoHandlingCartridge
apply cartridge PersistenceCartridge
contribute to type {
override javaType strategy=MutinyJavaTypeStrategy
}
contribute to complextype {
property entityClass: STRING strategy=EntityClassNamingStrategy
override tableName strategy=TableNameStrategy
}
contribute to relation {
property entityClass: STRING strategy=EntityClassNamingStrategy
property tableName: STRING strategy=TableNameStrategy
}
contribute to complextype.field {
override columnName strategy=ColumnNameStrategy
}
contribute to simpletype {
override javaType value='java.util.UUID'
}
}