Hibernate ORM Loadable - 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 Loadable class.

This code example shows how to use the following methods:getFactory, getIdentifierPropertyName, getVersionProperty, isVersioned

6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getIdentifierType, getIdentifierColumnNames
			OuterJoinLoadable persister, 
			int batchSize, 
			LockMode lockMode, 
			SessionFactoryImplementor factory, 
			LoadQueryInfluencers loadQueryInfluencers) throws MappingException { 
		this( 
				persister, 
				persister.getIdentifierColumnNames(), 
				persister.getIdentifierType(), 
				batchSize, 
				lockMode, 
				factory, 
				loadQueryInfluencers 
			); 
	} 
 
	public EntityLoader( 
			OuterJoinLoadable persister, 
			int batchSize, 
			LockOptions lockOptions, 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getDiscriminatorColumnName, getDiscriminatorType
	public boolean hasPhysicalDiscriminatorColumn(Queryable persister) { 
		if ( persister.getDiscriminatorType() != null ) { 
			String discrimColumnName = persister.getDiscriminatorColumnName(); 
			// Needed the "clazz_" check to work around union-subclasses 
			// TODO : is there a way to tell whether a persister is truly discrim-column based inheritence? 
			if ( discrimColumnName != null && !"clazz_".equals( discrimColumnName ) ) { 
				return true; 
			} 
		} 
		return false; 
	} 
 
	/** 
	 * Given a (potentially unqualified) class name, locate its imported qualified name. 
	 * 
	 * @param className The potentially unqualified class name 
	 * @return The qualified class name. 
	 */ 
	public String getImportedClassName(String className) { 
		return sfi.getImportedClassName( className ); 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:getIdentifierColumnNames
				//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;
			} 
		} 
	} 
	 
	/** 
	 * Get the columns of the associated table which are to  
	 * be used in the join 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Hibernate ORM Loadable Methods: