The ID can be used in NHibernate, the method is as follows:
id>
Find a process for multi-primary keys on the Hibernate's reference, which is as follows:
.... .. composite-id> If the table uses the joint primary key, you can combine multiple properties of the class into identifier properties. element accepts the attribute mapping and attribute mapping as sub-elements.
composite-id>