i search the web for answer, but all the answers refer to composite id PK. i want two map two columns of type long to PK. one should be regular generated id, and the other should be regular long field.
i 绘制以下地图:
<class name="com.company.MyTable" table="My_Table">
<id name="id" column="id">
<generator class="assigned"/>
</id>
<property name="jobId" column="job_id" type="long" index="oes_job_id_idx" />
<property name="serverId" column="server_id" type="long"/>
</class>
i want to add to the PK the job_id column. how do i do that?