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

This code example shows how to use the following methods:
		return getTable()!=getRootTable();
	} 
 
	public void createForeignKey() { 
		if ( !isJoinedSubclass() ) {
			throw new AssertionFailure( "not a joined-subclass" );
		} 
		getKey().createForeignKeyOfEntity( getSuperclass().getEntityName() );
	} 
 
	public void setEntityPersisterClass(Class classPersisterClass) {
		this.classPersisterClass = classPersisterClass;
	} 
 
	public boolean isLazyPropertiesCacheable() { 
		return getSuperclass().isLazyPropertiesCacheable();
	} 
 
	public int getJoinClosureSpan() { 
		return getSuperclass().getJoinClosureSpan() + super.getJoinClosureSpan();
Full Snippet Info
4
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:
		this( null ); 
	} 
 
	public ColumnValues(AnnotationInstance columnAnnotation) { 
		if ( columnAnnotation != null && !JPADotNames.COLUMN.equals( columnAnnotation.name() ) ) { 
			throw new AssertionFailure( "A @Column annotation needs to be passed to the constructor" ); 
		} 
		applyColumnValues( columnAnnotation ); 
	} 
 
	private void applyColumnValues(AnnotationInstance columnAnnotation) { 
		// if the column annotation is null we don't have to do anything. Everything is already defaulted. 
		if ( columnAnnotation == null ) { 
			return; 
		} 
 
		AnnotationValue nameValue = columnAnnotation.value( "name" ); 
		if ( nameValue != null ) { 
			this.name = nameValue.asString(); 
		} 
Full Snippet Info
4
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:
		if ( entity == null ) { 
			throw new NullPointerException( "null entities are not supported by " + getClass().getName() );
		} 
		if ( ! entityToOperatedOnFlagMap.containsKey( entity ) ||
			! entityToCopyMap.containsKey( entity ) ) {
			throw new AssertionFailure( "called EventCache.setOperatedOn() for entity not found in EventCache" );
		} 
		entityToOperatedOnFlagMap.put( entity, Boolean.valueOf( isOperatedOn ) );
	} 
 
	/** 
	 * Returns the copy-entity mappings 
	 * @return the copy-entity mappings 
	 */ 
	public IdentityMap invertMap() {
		return IdentityMap.invert( entityToCopyMap );
	} 
} 
Full Snippet Info
4
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:
	@Override 
	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); 
	} 
 
	@Override 
	public String logicalColumnName(String columnName, String propertyName) {
		return StringHelper.toUpperCase(StringHelper.isNotEmpty(columnName) ? columnName : StringHelper.unqualify(propertyName));
	} 
 
	@Override 
	public String logicalCollectionTableName(String tableName, String ownerEntityTable, String associatedEntityTable,
			String propertyName) {
		if (tableName != null) {
			return StringHelper.toUpperCase(tableName);
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:
		return persister.getPropertySpaces();
	} 
 
	@Override 
	public void beforeExecutions() { 
		throw new AssertionFailure( "beforeExecutions() called for non-collection action" );
	} 
 
	@Override 
	public String toString() {
		return StringHelper.unqualify( getClass().getName() ) + MessageHelper.infoString( entityName, id );
	} 
 
	@Override 
	public int compareTo(Object other) { 
		EntityAction action = ( EntityAction ) other;
		//sort first by entity name 
		int roleComparison = entityName.compareTo( action.entityName );
		if ( roleComparison != 0 ) {
			return roleComparison;
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE