I am not quite sure what the following code in the old configuration approach does. This needs to be verified and tests added: {code} if ( !( property.getPersistentClass() instanceof SingleTableSubclass ) ) { //single table should not be forced to null if ( !property.isComposite() ) { //composite should not add not-null on all columns @SuppressWarnings("unchecked") Iterator<Column> iter = property.getColumnIterator(); while ( iter.hasNext() ) { iter.next().setNullable( false );
} } } {code}
|