Hibernate ORM Type - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM Type class.

This code example shows how to use the following methods: getColumnSpan, isAssociationType, isComponentType, isEntityType
                      + "], incoming type = [" + type + "]"); 
			return; 
		} 
		typesByPropertyPath.put(path, type); 
		columnsByPropertyPath.put(path, columns); 
		columnReadersByPropertyPath.put(path, columnReaders); 
		columnReaderTemplatesByPropertyPath.put(path, columnReaderTemplates); 
		if (formulaTemplates!=null) { 
			formulaTemplatesByPropertyPath.put(path, formulaTemplates); 
		} 
	} 
 
	/*protected void initPropertyPaths( 
			final String path, 
			final Type type, 
			final String[] columns, 
			final String[] formulaTemplates, 
			final Mapping factory) 
	throws MappingException { 
		//addFormulaPropertyPath(path, type, formulaTemplates); 

6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: isCollectionType, isComponentType, isEntityType
 
			} 
 
		} 
 
	} 
 
	@Override 
    void processValue(int i, Object[] values, Type[] types) { 
		Object result = processValue( values[i], types[i] ); 
		if (result!=null) { 
			substitute = true; 
			values[i] = result; 
		} 
	} 
 
	@Override 
    Object processComponent(Object component, CompositeType componentType) 
	throws HibernateException { 
 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: isCollectionType, isComponentType, isEntityType
	 * @param type 
	 * @throws HibernateException 
	 */ 
	final Object processValue(Object value, Type type) throws HibernateException {
 
		if ( type.isCollectionType() ) {
			//even process null collections 
			return processCollection( value, (CollectionType) type );
		} 
		else if ( type.isEntityType() ) {
			return processEntity( value, (EntityType) type );
		} 
		else if ( type.isComponentType() ) {
			return processComponent( value, (CompositeType) type );
		} 
		else { 
			return null; 
		} 
	} 
 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: getLHSPropertyName, useLHSPrimaryKey, getColumnSpan
			} 
			else { 
				//handle a property-ref 
				String propertyRefTable = lhsPersister.getPropertyTableName(propertyName);
				if (propertyRefTable==null) {
					//it is possible that the tree-walking in OuterJoinLoader can get to 
					//an association defined by a subclass, in which case the property-ref 
					//might refer to a property defined on a subclass of the current class 
					//in this case, the table name is not known - this temporary solution  
					//assumes that the property-ref refers to a property of the subclass 
					//table that the association belongs to (a reasonable guess) 
					//TODO: fix this, add: OuterJoinLoadable.getSubclassPropertyTableName(String propertyName) 
					propertyRefTable = lhsPersister.getSubclassPropertyTableName(property);
				} 
				return propertyRefTable;
			} 
		} 
	} 
	 
	/** 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: isCollectionType, isEntityType
	} 
 
	@Override 
    protected boolean isJoinedFetchEnabled(AssociationType type, FetchMode config, CascadeStyle cascadeStyle) {
		return ( type.isEntityType() || type.isCollectionType() ) &&
				( cascadeStyle==null || cascadeStyle.doCascade(cascadeAction) );
	} 
 
	@Override 
    protected boolean isTooManyCollections() { 
		return countCollectionPersisters(associations)>0;
	} 
 
	@Override 
    public String getComment() {
		return "load " + getPersister().getEntityName();
	} 
	 
} 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
See Code Examples for Hibernate ORM Type Methods: