So I got the issue, the problem with the xml generated is that the cache node should be after tuplizer node as the schema that is being used is http://hibernate.org/xsd/orm/hbm/legacy-mapping-4.0.xsd , which needs the cache node to come after Tuplizer, I got this resolved from the hibernate forums. The discussions details are @ https://discourse.hibernate.org/t/getting-npe-while-using-cache-usage-read-only-in-hbmxml-in-hibernate-5-2-11/4730
CLICK HERE to find out more related problems solutions.