It seems that in org.hibernate.collection.spi.AbstractPersistentCollection#needsRecreate we currently force a recreate when the element type contains nullable columns, because the update/delete restriction for these columns would require special care for nullable columns, which we don’t have yet. We prototyped how this could work as part of https://github.com/hibernate/hibernate-orm/pull/5948 though, so at some point we should try to get back to this and handle nullable columns properly. |