Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Hibernate OGM, Domain model persistence for NoSQL datastores
  *
  * License: GNU Lesser General Public License (LGPL), version 2.1 or later
  * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
  */
 package org.hibernate.ogm.persister.impl;
 
 import java.util.Set;
Use single table strategy.

Author(s):
Emmanuel Bernard
See also:
javax.persistence.InheritanceType.SINGLE_TABLE
			final PersistentClass persistentClass,
			final EntityRegionAccessStrategy cacheAccessStrategy,
			final NaturalIdRegionAccessStrategy naturalIdRegionAccessStrategy,
			final SessionFactoryImplementor factory,
			final Mapping mappingthrows HibernateException {
		superpersistentClasscacheAccessStrategynaturalIdRegionAccessStrategyfactorymappingresolveDiscriminatorpersistentClassfactory ) );
	}
	private static EntityDiscriminator resolveDiscriminator(final PersistentClass persistentClassfinal SessionFactoryImplementor factory) {
		if ( persistentClass.isPolymorphic() ) {
			Value discrimValue = persistentClass.getDiscriminator();
			Selectable selectable = (SelectablediscrimValue.getColumnIterator().next();
			if ( discrimValue.hasFormula() ) {
				throw new UnsupportedOperationException"OGM doesn't support discriminator formulas" );
			}
			else {
				return new ColumnBasedDiscriminatorpersistentClassfactory, (Columnselectable );
			}
		}
		else {
		}
	}
	protected String filterFragment(String aliasSet<StringtreatAsDeclarations) {
		return null;
	}
New to GrepCode? Check out our FAQ X