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

kz.facilities.common-genesis-mutiny.1.3.28.source-code.MutinyVertx.profile Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
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' 
    }
	
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy