Class RelationFieldAnnotator


  • public class RelationFieldAnnotator
    extends java.lang.Object
    Author:
    Colin PUY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void annotateRelationField​(com.sun.codemodel.JDefinedClass entityClass, org.bonitasoft.engine.bdm.model.field.RelationField field, com.sun.codemodel.JFieldVar fieldVar)  
      protected java.lang.String getJoinColumnName​(java.lang.String entityName)
      Split names to 26 char to avoid joinColumn names longer than 30 char protected for testing
      protected java.lang.String getJoinTableName​(java.lang.String entityName, java.lang.String relatedEntityName)
      Split names to 14 chars max to avoid joinTable names longer than 30 char (oracle restriction).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RelationFieldAnnotator

        public RelationFieldAnnotator​(CodeGenerator codeGenerator)
    • Method Detail

      • annotateRelationField

        public void annotateRelationField​(com.sun.codemodel.JDefinedClass entityClass,
                                          org.bonitasoft.engine.bdm.model.field.RelationField field,
                                          com.sun.codemodel.JFieldVar fieldVar)
      • getJoinColumnName

        protected java.lang.String getJoinColumnName​(java.lang.String entityName)
        Split names to 26 char to avoid joinColumn names longer than 30 char protected for testing
      • getJoinTableName

        protected java.lang.String getJoinTableName​(java.lang.String entityName,
                                                    java.lang.String relatedEntityName)
        Split names to 14 chars max to avoid joinTable names longer than 30 char (oracle restriction). protected for testing