Because of HHH-5529, the current cleanupTestData utility does not work when the entity in question have any associations that use link tables (e.g. @ElementCollection, unidirectional @OneToMany, etc). However, when removing each element using the Session, the link tables are cleared properly. |