I am not quite what the following code in the old configuration approach does. This needs to be verified and tests added:
if ( !( property.getPersistentClass() instanceof SingleTableSubclass ) ) {
//single table should not be forced to nullif ( !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 );
}
}
}