Hibernate mapping multiple classes to one table using hbm.xml
问题 I am fairly new to Hibernate and need some help with hibernate-mapping. I have 4 different classes which I want to map into one table, of which the primary key consists of attributes from 2 different classes. At the same time, I want to map only selected attributes from each class into a local database. I wish to avoid JPA annotations and define the mapping style in a hbm.xml file instead. How do I do that? Take the following example: public class Tenant implements Serializable { private