If @OneToMany has mappedBy which is mapped using @JoinColumnsOrFormulas with formula, then there is ClassCastException.
java.lang.ClassCastException: org.hibernate.mapping.Formula cannot be cast to org.hibernate.mapping.Column
I have seen some similar bugs, but they all are fixed/closed. Maybe it is a duplicate. Simple example attached. |