public void validate(Mapping mapping) throws MappingException { super.validate( mapping ); //for backward compatibility, disable this: /*Iterator iter = getElement().getColumnIterator(); while ( iter.hasNext() ) { Column col = (Column) iter.next(); if ( !col.isNullable() ) { return; } } throw new MappingException("set element mappings must have at least one non-nullable column: " + getRole() );*/ }
@Override public void validate() throws MappingException { for ( PersistentClass entityBinding : this.getEntityBindings() ) { entityBinding.validate( this ); } for ( Collection collectionBinding : this.getCollectionBindings() ) { collectionBinding.validate( this ); } }
public void validate(Mapping mapping) throws MappingException { super.validate( mapping ); assert getElement() != null : "IndexedCollection index not bound : " + getRole(); if ( !getIndex().isValid(mapping) ) { throw new MappingException( "collection index mapping has wrong number of columns: " + getRole() + " type: " + getIndex().getType().getName() ); } }
public void validate(Mapping mapping) throws MappingException { super.validate( mapping ); assert getElement() != null : "IdentifierCollection identifier not bound : " + getRole(); if ( !getIdentifier().isValid(mapping) ) { throw new MappingException( "collection id mapping has wrong number of columns: " + getRole() + " type: " + getIdentifier().getType().getName() ); } } }
public void validate(Mapping mapping) throws MappingException { super.validate( mapping ); //for backward compatibility, disable this: /*Iterator iter = getElement().getColumnIterator(); while ( iter.hasNext() ) { Column col = (Column) iter.next(); if ( !col.isNullable() ) { return; } } throw new MappingException("set element mappings must have at least one non-nullable column: " + getRole() );*/ }
public void validate(Mapping mapping) throws MappingException { super.validate( mapping ); //for backward compatibility, disable this: /*Iterator iter = getElement().getColumnIterator(); while ( iter.hasNext() ) { Column col = (Column) iter.next(); if ( !col.isNullable() ) { return; } } throw new MappingException("set element mappings must have at least one non-nullable column: " + getRole() );*/ }
public void validate(Mapping mapping) throws MappingException { super.validate( mapping ); //for backward compatibility, disable this: /*Iterator iter = getElement().getColumnIterator(); while ( iter.hasNext() ) { Column col = (Column) iter.next(); if ( !col.isNullable() ) { return; } } throw new MappingException("set element mappings must have at least one non-nullable column: " + getRole() );*/ }
public void validate(Mapping mapping) throws MappingException { super.validate( mapping ); //for backward compatibility, disable this: /*Iterator iter = getElement().getColumnIterator(); while ( iter.hasNext() ) { Column col = (Column) iter.next(); if ( !col.isNullable() ) { return; } } throw new MappingException("set element mappings must have at least one non-nullable column: " + getRole() );*/ }
public void validate() throws MappingException { super.validate(); //for backward compatibility, disable this: // for ( MappedColumn mappedColumn : getElement().getMappedColumns() ) { // // assume a formula is nullable // if ( mappedColumn instanceof Column && ( (Column) mappedColumn ).isNullable() ) { // return; // } // } // throw new MappingException("set element mappings must have at least one non-nullable column: " + getRole() );*/ }
private void validate() throws MappingException { Iterator iter = classes.values().iterator(); while ( iter.hasNext() ) { ( (PersistentClass) iter.next() ).validate( mapping ); } iter = collections.values().iterator(); while ( iter.hasNext() ) { ( (Collection) iter.next() ).validate( mapping ); } }
private void validate() throws MappingException { Iterator iter = classes.values().iterator(); while ( iter.hasNext() ) { ( (PersistentClass) iter.next() ).validate( mapping ); } iter = collections.values().iterator(); while ( iter.hasNext() ) { ( (Collection) iter.next() ).validate( mapping ); } }
private void validate() throws MappingException { Iterator iter = classes.values().iterator(); while ( iter.hasNext() ) ( ( PersistentClass ) iter.next() ).validate( mapping ); iter = collections.values().iterator(); while ( iter.hasNext() ) ( ( Collection ) iter.next() ).validate( mapping ); }
@Override public void validate() throws MappingException { for ( EntityMapping entityBinding : getEntityMappings() ) { ((EntityMappingImplementor)entityBinding).validate(); } for ( Collection collectionBinding : this.getCollectionBindings() ) { collectionBinding.validate(); } }
public void validate(Mapping mapping) throws MappingException { super.validate(mapping); if ( !getIndex().isValid(mapping) ) { throw new MappingException( "collection index mapping has wrong number of columns: " + getRole() + " type: " + getIndex().getType().getName() ); } if ( indexNodeName!=null && !indexNodeName.startsWith("@") ) { throw new MappingException("index node must be an attribute: " + indexNodeName ); } }
public void validate(Mapping mapping) throws MappingException { super.validate(mapping); if ( !getIndex().isValid(mapping) ) { throw new MappingException( "collection index mapping has wrong number of columns: " + getRole() + " type: " + getIndex().getType().getName() ); } if ( indexNodeName!=null && !indexNodeName.startsWith("@") ) { throw new MappingException("index node must be an attribute: " + indexNodeName ); } }
public void validate(Mapping mapping) throws MappingException { super.validate(mapping); if ( !getIndex().isValid(mapping) ) { throw new MappingException( "collection index mapping has wrong number of columns: " + getRole() + " type: " + getIndex().getType().getName() ); } if ( indexNodeName!=null && !indexNodeName.startsWith("@") ) { throw new MappingException("index node must be an attribute: " + indexNodeName ); } }
public void validate(Mapping mapping) throws MappingException { super.validate(mapping); if ( !getIdentifier().isValid(mapping) ) { throw new MappingException( "collection id mapping has wrong number of columns: " + getRole() + " type: " + getIdentifier().getType().getName() ); } }
public void validate(Mapping mapping) throws MappingException { super.validate(mapping); if ( !getIdentifier().isValid(mapping) ) { throw new MappingException( "collection id mapping has wrong number of columns: " + getRole() + " type: " + getIdentifier().getType().getName() ); } }
public void validate(Mapping mapping) throws MappingException { super.validate(mapping); if ( !getIdentifier().isValid(mapping) ) { throw new MappingException( "collection id mapping has wrong number of columns: " + getRole() + " type: " + getIdentifier().getType().getName() ); } }
public void validate(Mapping mapping) throws MappingException { super.validate(mapping); if ( !getIdentifier().isValid(mapping) ) { throw new MappingException( "collection id mapping has wrong number of columns: " + getRole() + " type: " + getIdentifier().getType().getName() ); } }