Getting hibernate warnings after upgrading from 3.x to hibernate-core 4.3.8

We have recently upgraded from hibernate 3.x to hibernate-core4.3.8. We are started to get warning in startup logs like HHH000038: Composite-id class does not override equals(): com.mmoney.dto.BonusHeaderDTO.

How to suppress these warnings?. Also I tried to suppress these warnings by adding below properties in, however it is not helping.

Hibernate ORM 4.3 is unmaintained for many years now, so you probably will have to look into the source code yourself to figure this out, but how about you add a equals implementation to BonusHeaderDTO?