This is happening only when the relationship is a List, if we convert to Set then there is no issue. This issue is not consistent sometimes it works and sometimes it inserts duplicate. I have tested it with hibernate version 5.0.7.Final