synthProp.setUpdateable( false ); synthProp.setInsertable( false ); synthProp.setValue( embeddedComp ); synthProp.setPropertyAccessorName( "embedded" ); ownerEntity.addProperty( synthProp );
private Property createAnyAssociationAttribute( MappingDocument sourceDocument, SingularAttributeSourceAny anyMapping, Any anyBinding, String entityName) { final String attributeName = anyMapping.getName(); bindAny( sourceDocument, anyMapping, anyBinding, anyMapping.getAttributeRole(), anyMapping.getAttributePath() ); prepareValueTypeViaReflection( sourceDocument, anyBinding, entityName, attributeName, anyMapping.getAttributeRole() ); anyBinding.createForeignKey(); Property prop = new Property(); prop.setValue( anyBinding ); bindProperty( sourceDocument, anyMapping, prop ); return prop; }
property.setPropertyAccessorName( referencedProperty.getPropertyAccessorName() ); SimpleValue value = new SimpleValue( buildingContext, component.getTable() ); property.setValue( value ); final SimpleValue referencedValue = (SimpleValue) referencedProperty.getValue(); value.setTypeName( referencedValue.getTypeName() );
newProperty.setPropertyAccessorName( current.getPropertyAccessorName() ); newProperty.setSelectable( current.isSelectable() ); newProperty.setValue( createFormulatedValue( current.getValue(), collection, targetPropertyName, associatedClass, associatedClass, buildingContext
prop.setValue( oneToOneBinding ); bindProperty( sourceDocument,
Property prop = new Property(); prop.setName( name ); prop.setValue( value ); prop.setLazy( lazy ); prop.setLazyGroup( lazyGroup );
prop.setValue( cid ); bindProperty( sourceDocument,
Component value = new Component( buildingContext, component.getOwner() ); property.setValue( value ); final Component referencedValue = (Component) referencedProperty.getValue(); value.setTypeName( referencedValue.getTypeName() );
prop.setValue( manyToOneBinding ); bindProperty( sourceDocument,
property.setValue( value ); property.setLob( value.isLob() ); bindProperty(
attribute = new Property(); attribute.setValue( componentBinding ); bindProperty( sourceDocument,
property.setUpdateable( false ); property.setInsertable( false ); property.setValue( mapper ); property.setPropertyAccessorName( "embedded" ); persistentClass.addProperty( property );
/** * create a property copy reusing the same value */ public static Property shallowCopy(Property property) { Property clone = new Property(); clone.setCascade( property.getCascade() ); clone.setInsertable( property.isInsertable() ); clone.setLazy( property.isLazy() ); clone.setName( property.getName() ); clone.setNaturalIdentifier( property.isNaturalIdentifier() ); clone.setOptimisticLocked( property.isOptimisticLocked() ); clone.setOptional( property.isOptional() ); clone.setPersistentClass( property.getPersistentClass() ); clone.setPropertyAccessorName( property.getPropertyAccessorName() ); clone.setSelectable( property.isSelectable() ); clone.setUpdateable( property.isUpdateable() ); clone.setValue( property.getValue() ); return clone; }
attribute.setValue( collectionBinding ); bindProperty( sourceDocument,
prop.setValue( versionValue ); bindProperty( sourceDocument,
property.setUpdateable( false ); property.setInsertable( false ); property.setValue( mapper ); property.setPropertyAccessorName( "embedded" ); rootEntityDescriptor.addProperty( property );
prop.setValue( idValue ); bindProperty( sourceDocument,
manyToOne.setReferencedEntityName( value.getReferencedEntityName() ); manyToOne.setUnwrapProxy( value.isUnwrapProxy() ); prop.setValue( manyToOne ); Iterator otherSideJoinKeyColumns = otherSideJoin.getKey().getColumnIterator(); while ( otherSideJoinKeyColumns.hasNext() ) {
prop.setName( name ); prop.setNodeName( name ); prop.setValue( value ); prop.setLazy( lazy ); prop.setCascade( cascade );
/** * create a property copy reusing the same value */ public static Property shallowCopy(Property property) { Property clone = new Property(); clone.setCascade( property.getCascade() ); clone.setInsertable( property.isInsertable() ); clone.setLazy( property.isLazy() ); clone.setName( property.getName() ); clone.setNodeName( property.getNodeName() ); clone.setNaturalIdentifier( property.isNaturalIdentifier() ); clone.setOptimisticLocked( property.isOptimisticLocked() ); clone.setOptional( property.isOptional() ); clone.setPersistentClass( property.getPersistentClass() ); clone.setPropertyAccessorName( property.getPropertyAccessorName() ); clone.setSelectable( property.isSelectable() ); clone.setUpdateable( property.isUpdateable() ); clone.setValue( property.getValue() ); return clone; }