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

Hi,
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 log4j2.properties, however it is not helping.

log4j.logger.org.hibernate.orm.deprecation=error
log4j.logger.org.hibernate=error

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?