Hibernate migration from 3 to 5

Hello,
We have a legacy application wherein we are using Hibernate 3.5.1 version and we want to migrate it to 5.1.X version.
There are so many hbm.xml files maintained currently in our application.
Can we keep these configuration files or we need to move to annotations and get rid of hbm.xml files ?
If there is any documentation available for migration from 3 to 5 and also the issues and their resolution will be helpful.

Thanks

You don’t have to get rid of the hibernate-specific hbm.xml files, you can still use them in later versions of hibernate.

Thank you for your reply.
This information is very helpful.