We’ve deprecated the hbm.xml format without providing any replacement way to map a class with two different entity names. We have jumped through hoops in our APIs and internal implementation to support this usage, so we should make this work.