public Join getJoin() { Join join = joins.get( explicitTableName ); if ( join == null ) { // annotation binding seems to use logical and physical naming somewhat inconsistently... final String physicalTableName = getBuildingContext().getMetadataCollector().getPhysicalTableName( explicitTableName ); if ( physicalTableName != null ) { join = joins.get( physicalTableName ); } } if ( join == null ) { throw new AnnotationException( "Cannot find the expected secondary table: no " + explicitTableName + " available for " + propertyHolder.getClassName() ); } return join; }
private Property makePropertyAndValue() { validateBind(); LOG.debugf( "MetadataSourceProcessor property %s with lazy=%s", name, lazy ); final String containerClassName = holder.getClassName(); holder.startingProperty( property ); simpleValueBinder = new SimpleValueBinder(); simpleValueBinder.setBuildingContext( buildingContext ); simpleValueBinder.setPropertyName( name ); simpleValueBinder.setReturnedClassName( returnedClassName ); simpleValueBinder.setColumns( columns ); simpleValueBinder.setPersistentClassName( containerClassName ); simpleValueBinder.setType( property, returnedClass, containerClassName, holder.resolveAttributeConverterDescriptor( property ) ); simpleValueBinder.setReferencedEntityName( referencedEntityName ); simpleValueBinder.setAccessType( accessType ); SimpleValue propertyValue = simpleValueBinder.make(); setValue( propertyValue ); return makeProperty(); }
public Join getJoin() { Join join = joins.get( secondaryTableName ); if ( join == null ) { throw new AnnotationException( "Cannot find the expected secondary table: no " + secondaryTableName + " available for " + propertyHolder.getClassName() ); } else { return join; } }
throw new MappingException( String.format("Association [%s] for entity [%s] references unmapped class [%s]", propertyName, propertyHolder.getClassName(), assocClass) );
value.setTypeUsingReflection( propertyHolder.getClassName(), propertyName );
private Property makePropertyAndValue() { validateBind(); log.debug( "binding property {} with lazy={}", name, lazy ); String containerClassName = holder == null ? null : holder.getClassName(); simpleValueBinder = new SimpleValueBinder(); simpleValueBinder.setMappings( mappings ); simpleValueBinder.setPropertyName( name ); simpleValueBinder.setReturnedClassName( returnedClassName ); simpleValueBinder.setColumns( columns ); simpleValueBinder.setPersistentClassName( containerClassName ); simpleValueBinder.setType( property, returnedClass ); simpleValueBinder.setMappings( mappings ); simpleValueBinder.setReferencedEntityName( referencedEntityName ); SimpleValue propertyValue = simpleValueBinder.make(); setValue( propertyValue ); return makeProperty(); }
public Join getJoin() { Join join = joins.get( secondaryTableName ); if ( join == null ) { throw new AnnotationException( "Cannot find the expected secondary table: no " + secondaryTableName + " available for " + propertyHolder.getClassName() ); } else { return join; } }
public Join getJoin() { Join join = joins.get( secondaryTableName ); if ( join == null ) { throw new AnnotationException( "Cannot find the expected secondary table: no " + secondaryTableName + " available for " + propertyHolder.getClassName() ); } else { return join; } }
public Join getJoin() { Join join = joins.get( secondaryTableName ); if ( join == null ) { throw new AnnotationException( "Cannot find the expected secondary table: no " + secondaryTableName + " available for " + propertyHolder.getClassName() ); } else { return join; } }
public Join getJoin() { Join join = joins.get( explicitTableName ); if ( join == null ) { // annotation binding seems to use logical and physical naming somewhat inconsistently... if ( explicitTableName != null ) { join = joins.get( explicitTableName ); } } if ( join == null ) { throw new AnnotationException( "Cannot find the expected secondary table: no " + explicitTableName + " available for " + propertyHolder.getClassName() ); } return join; }
value.setTypeUsingReflection( propertyHolder.getClassName(), propertyName );
public Property bind() { validateBind(); if ( log.isDebugEnabled() ) { log.debug( "binding property " + name + " with lazy=" + lazy ); } String containerClassName = holder == null ? null : holder.getClassName(); SimpleValueBinder value = new SimpleValueBinder(); value.setMappings( mappings ); value.setPropertyName( name ); value.setReturnedClassName( returnedClassName ); value.setColumns( columns ); value.setPersistentClassName( containerClassName ); value.setType( property, returnedClass ); value.setMappings( mappings ); SimpleValue propertyValue = value.make(); setValue( propertyValue ); Property prop = make(); holder.addProperty( prop, columns ); return prop; }
private Property makePropertyAndValue() { validateBind(); LOG.debugf( "MetadataSourceProcessor property %s with lazy=%s", name, lazy ); String containerClassName = holder == null ? null : holder.getClassName(); simpleValueBinder = new SimpleValueBinder(); simpleValueBinder.setMappings( mappings ); simpleValueBinder.setPropertyName( name ); simpleValueBinder.setReturnedClassName( returnedClassName ); simpleValueBinder.setColumns( columns ); simpleValueBinder.setPersistentClassName( containerClassName ); simpleValueBinder.setType( property, returnedClass ); simpleValueBinder.setMappings( mappings ); simpleValueBinder.setReferencedEntityName( referencedEntityName ); SimpleValue propertyValue = simpleValueBinder.make(); setValue( propertyValue ); return makeProperty(); }
private Property makePropertyAndValue() { validateBind(); LOG.debugf( "MetadataSourceProcessor property %s with lazy=%s", name, lazy ); String containerClassName = holder == null ? null : holder.getClassName(); simpleValueBinder = new SimpleValueBinder(); simpleValueBinder.setMappings( mappings ); simpleValueBinder.setPropertyName( name ); simpleValueBinder.setReturnedClassName( returnedClassName ); simpleValueBinder.setColumns( columns ); simpleValueBinder.setPersistentClassName( containerClassName ); simpleValueBinder.setType( property, returnedClass ); simpleValueBinder.setMappings( mappings ); simpleValueBinder.setReferencedEntityName( referencedEntityName ); SimpleValue propertyValue = simpleValueBinder.make(); setValue( propertyValue ); return makeProperty(); }
private Property makePropertyAndValue() { validateBind(); LOG.debugf( "MetadataSourceProcessor property %s with lazy=%s", name, lazy ); final String containerClassName = holder.getClassName(); holder.startingProperty( property ); basicValueBinder = new BasicValueBinder( BasicValueBinder.Kind.ATTRIBUTE, buildingContext ); basicValueBinder.setPropertyName( name ); basicValueBinder.setReturnedClassName( returnedClassName ); basicValueBinder.setColumns( columns ); basicValueBinder.setPersistentClassName( containerClassName ); basicValueBinder.setType( property, returnedClass, containerClassName, holder.resolveAttributeConverterDescriptor( property ) ); basicValueBinder.setReferencedEntityName( referencedEntityName ); SimpleValue propertyValue = basicValueBinder.make(); setValue( propertyValue ); return makeProperty(); }
throw new MappingException( String.format("Association [%s] for entity [%s] references unmapped class [%s]", propertyName, propertyHolder.getClassName(), assocClass) );
value.setTypeUsingReflection( propertyHolder.getClassName(), propertyName );
value.setTypeUsingReflection( propertyHolder.getClassName(), propertyName );
value.setTypeUsingReflection( propertyHolder.getClassName(), propertyName );