@Override public org.hibernate.type.Type getReferencedPropertyType(String entityName, String propertyName) throws MappingException { final PersistentClass pc = entityBindingMap.get( entityName ); if ( pc == null ) { throw new MappingException( "persistent class not known: " + entityName ); } Property prop = pc.getReferencedProperty( propertyName ); if ( prop == null ) { throw new MappingException( "property not known: " + entityName + '.' + propertyName ); } return prop.getType(); }
@Override public org.hibernate.type.Type getReferencedPropertyType(String entityName, String propertyName) throws MappingException { final PersistentClass pc = entityBindingMap.get( entityName ); if ( pc == null ) { throw new MappingException( "persistent class not known: " + entityName ); } Property prop = pc.getReferencedProperty( propertyName ); if ( prop == null ) { throw new MappingException( "property not known: " + entityName + '.' + propertyName ); } return prop.getType(); }
@Override public void process(InFlightMetadataCollector metadataCollector) { final PersistentClass clazz = metadataCollector.getEntityBinding( referencedClass ); if ( clazz == null ) { throw new MappingException( "property-ref to unmapped class: " + referencedClass ); } final Property prop = clazz.getReferencedProperty( propertyName ); if ( unique ) { ( (SimpleValue) prop.getValue() ).setAlternateUniqueKey( true ); } } }
Property propertyBinding = entityBinding.getReferencedProperty( referencedPropertyName ); if ( propertyBinding == null ) { throw new MappingException(
PersistentClass pc = (PersistentClass) persistentClasses.get(getReferencedEntityName() ); Property property = pc.getReferencedProperty( getReferencedPropertyName() );
Property propertyBinding = entityBinding.getReferencedProperty( referencedPropertyName ); if ( propertyBinding == null ) {
); Property synthProp = referencedEntity.getReferencedProperty( referencedPropertyName ); if ( synthProp == null ) { throw new AssertionFailure(
.getReferencedProperty( propRef ) .getValue();
public Type getReferencedPropertyType(String persistentClass, String propertyName) throws MappingException { final PersistentClass pc = (PersistentClass) classes.get( persistentClass ); if ( pc == null ) { throw new MappingException( "persistent class not known: " + persistentClass ); } Property prop = pc.getReferencedProperty( propertyName ); if ( prop == null ) { throw new MappingException( "property not known: " + persistentClass + '.' + propertyName ); } return prop.getType(); } };
Property prop = clazz.getReferencedProperty( upr.propertyName ); if ( upr.unique ) { ( (SimpleValue) prop.getValue() ).setAlternateUniqueKey( true );
public Type getReferencedPropertyType(String entityName, String propertyName) throws MappingException { final PersistentClass pc = classes.get( entityName ); if ( pc == null ) { throw new MappingException( "persistent class not known: " + entityName ); } Property prop = pc.getReferencedProperty( propertyName ); if ( prop == null ) { throw new MappingException( "property not known: " + entityName + '.' + propertyName ); } return prop.getType(); } };
public Type getReferencedPropertyType(String entityName, String propertyName) throws MappingException { final PersistentClass pc = classes.get( entityName ); if ( pc == null ) { throw new MappingException( "persistent class not known: " + entityName ); } Property prop = pc.getReferencedProperty( propertyName ); if ( prop == null ) { throw new MappingException( "property not known: " + entityName + '.' + propertyName ); } return prop.getType(); } };
@Override public void process(InFlightMetadataCollector metadataCollector) { final PersistentClass clazz = metadataCollector.getEntityBinding( referencedClass ); if ( clazz == null ) { throw new MappingException( "property-ref to unmapped class: " + referencedClass ); } final Property prop = clazz.getReferencedProperty( propertyName ); if ( unique ) { ( (SimpleValue) prop.getValue() ).setAlternateUniqueKey( true ); } } }
Property propertyBinding = entityBinding.getReferencedProperty( referencedPropertyName ); if ( propertyBinding == null ) { throw new MappingException(
PersistentClass pc = (PersistentClass) persistentClasses.get(getReferencedEntityName() ); Property property = pc.getReferencedProperty( getReferencedPropertyName() );
PersistentClass pc = (PersistentClass) persistentClasses.get(getReferencedEntityName() ); Property property = pc.getReferencedProperty( getReferencedPropertyName() );
PersistentClass pc = (PersistentClass) persistentClasses.get(getReferencedEntityName() ); Property property = pc.getReferencedProperty( getReferencedPropertyName() );
@Override public JavaTypeMapping getJavaTypeMapping() { final PersistentClass referencedPersistentClass = getMetadataBuildingContext() .getMetadataCollector() .getEntityBinding( getReferencedEntityName() ); if ( referenceToPrimaryKey || referencedPropertyName == null ) { return referencedPersistentClass.getIdentifier().getJavaTypeMapping(); } else { return referencedPersistentClass.getReferencedProperty( getReferencedPropertyName() ) .getValue() .getJavaTypeMapping(); } } }
@Override public JavaTypeMapping getJavaTypeMapping() { final PersistentClass referencedPersistentClass = getMetadataBuildingContext() .getMetadataCollector() .getEntityBinding( getReferencedEntityName() ); if ( referenceToPrimaryKey || referencedPropertyName == null ) { return referencedPersistentClass.getIdentifier().getJavaTypeMapping(); } else { return referencedPersistentClass.getReferencedProperty( getReferencedPropertyName() ) .getValue() .getJavaTypeMapping(); } } }
.getMetadataCollector() .getEntityBinding( getReferencedEntityName() ); final Property property = pc.getReferencedProperty( getReferencedPropertyName() );