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

entity.PropertyMapping.xpt Maven / Gradle / Ivy

There is a newer version: 1.24.1
Show newest version
«IMPORT uml»
«IMPORT JMM»
«EXTENSION java::Naming»


//Property mapping.


// generic property, it is used for example for public static final properties
// this properties don't have to be mapped to hibernate, so nothing happens here
«DEFINE PropertyMapping FOR Property»«ENDDEFINE»
«DEFINE PropertyMapping FOR Element»«ENDDEFINE»

//Field mapping
//properties are mapped to database columns
«DEFINE PropertyMapping FOR Field»
    
	 0»index="«index»"«ENDIF» «IF charLength > 0»length="«charLength»"«ENDIF»«IF precision > 0»precision="«precision»"«ENDIF» «IF scale > 0»scale="«scale»"«ENDIF»>	
  «IF this.type.getAppliedStereotype("JMM::UserType") == null-»
       0»length="«charLength»"«ENDIF»«IF precision > 0»precision="«precision»"«ENDIF» «IF scale > 0»scale="«scale»"«ENDIF» «IF sqlType.length > 0»sql-type="«sqlType»"«ENDIF»/>
  «ELSE-»
      
      «FOREACH ((StructuredClassifier) type).ownedAttribute AS attribute»
      «IF attribute.getAppliedStereotype("JMM::Field") != null-»
         0»length="«((JMM::Field) attribute).charLength»"«ENDIF»«IF ((JMM::Field) attribute).precision > 0»precision="«((JMM::Field) attribute).precision»"«ENDIF» «IF ((JMM::Field) attribute).scale > 0»scale="«((JMM::Field) attribute).scale»"«ENDIF» «IF ((JMM::Field) attribute).sqlType.length > 0»sql-type="«((JMM::Field) attribute).sqlType»"«ENDIF»/>
      «ELSE-»
        
      «ENDIF-»
      «ENDFOREACH-»
        
  «ENDIF-»  
«ENDDEFINE»




© 2015 - 2024 Weber Informatics LLC | Privacy Policy