Best code examples for Hibernate ORM AssertionFailure class (org.hibernate.AssertionFailure)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM AssertionFailure class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM AssertionFailure examples from Open Source projects
This code example shows how to use the following methods:
This code example shows how to use the following methods:
import org.hibernate.metamodel.source.binder.RootEntitySource; 
import org.hibernate.metamodel.source.binder.SingularAttributeSource; 
 
/** 
 * @author Hardy Ferentschik 
 */ 
public class RootEntitySourceImpl extends EntitySourceImpl implements RootEntitySource { 
	public RootEntitySourceImpl(EntityClass entityClass) {
		super( entityClass );
	} 
 
	@Override 
	public IdentifierSource getIdentifierSource() { 
		IdType idType = getEntityClass().getIdType();
		switch ( idType ) {
			case SIMPLE: {
				BasicAttribute attribute = getEntityClass().getIdAttributes().iterator().next();
				return new SimpleIdentifierSourceImpl( attribute, getEntityClass().getAttributeOverrideMap() );
			} 
			case COMPOSED: {
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
	 */ 
	public String foreignKeyColumnName(
			String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName
	) { 
		String header = propertyName != null ? StringHelper.unqualify( propertyName ) : propertyTableName;
		if (header == null) throw new AssertionFailure("NamingStrategy not properly filled");
		return columnName( header ); //+ "_" + referencedColumnName not used for backward compatibility
	} 
 
	/** 
	 * Return the column name or the unqualified property name 
	 */ 
	public String logicalColumnName(String columnName, String propertyName) {
		return StringHelper.isNotEmpty( columnName ) ? columnName : StringHelper.unqualify( propertyName );
	} 
 
	/** 
	 * Returns either the table name if explicit or 
	 * if there is an associated table, the concatenation of owner entity table and associated table 
	 * otherwise the concatenation of owner entity table and the unqualified property name 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
This code example shows how to use the following methods:
		else if ( DiscriminatorType.STRING.equals( type ) || type == null ) { 
			if ( discAnn != null ) discriminatorColumn.setLength( discAnn.length() );
			discriminatorColumn.setDiscriminatorTypeName( "string" );
		} 
		else { 
			throw new AssertionFailure( "Unknown discriminator type: " + type );
		} 
		discriminatorColumn.bind();
		return discriminatorColumn;
	} 
 
	@Override 
	public String toString() {
		final StringBuilder sb = new StringBuilder();
		sb.append( "Ejb3DiscriminatorColumn" );
		sb.append( "{logicalColumnName'" ).append( getLogicalColumnName() ).append( '\'' );
		sb.append( ", discriminatorTypeName='" ).append( discriminatorTypeName ).append( '\'' );
		sb.append( '}' );
		return sb.toString();
	} 
Full Snippet Info
4
CodeRank