hbm.xml文件配置 <composite-id> <key-property name="carmodel" column="CARMODEL" type="java.lang.Integer"/> <key-property name="speedModel" column="SPEEDMODEL" type="java.lang.Integer"/> </composite-id> get set方法没什么区别