Exemplo n.º 1
0
 private ValueInclusion determineInsertValueGenerationType(
     Property mappingProperty, StandardProperty runtimeProperty) {
   if (runtimeProperty.isInsertGenerated()) {
     return ValueInclusion.FULL;
   } else if (mappingProperty.getValue() instanceof Component) {
     if (hasPartialInsertComponentGeneration((Component) mappingProperty.getValue())) {
       return ValueInclusion.PARTIAL;
     }
   }
   return ValueInclusion.NONE;
 }
Exemplo n.º 2
0
 private ValueInclusion determineInsertValueGenerationType(
     AttributeBinding mappingProperty, StandardProperty runtimeProperty) {
   if (runtimeProperty.isInsertGenerated()) {
     return ValueInclusion.FULL;
   }
   // TODO: fix the following when components are working (HHH-6173)
   // else if ( mappingProperty.getValue() instanceof ComponentAttributeBinding ) {
   //	if ( hasPartialInsertComponentGeneration( ( ComponentAttributeBinding )
   // mappingProperty.getValue() ) ) {
   //		return ValueInclusion.PARTIAL;
   //	}
   // }
   return ValueInclusion.NONE;
 }