Hi,
I have a composite key in which i need one amongthe key to be set to auto-increment. Could you please guide me how to proceed with this? I have kept my coposite key code below...
Code:
<class name="com.oem.dlms.campaign.dto.CampaignDetails"
table="CAMPAIGNS">
<composite-id name="campaignKey"
class="com.oem.dlms.campaign.dto.CampaignKey">
<key-property name="campaignId" column="CAMPAIGN_ID"
type="int" />
<key-property name="version" column="VERSION_NO" type="int" />
</composite-id>
<property name="campaignName" column="NAME" />
I need the campaignId alone to get incremented.
Thanks in advance for your time and valuable guidance.
Regards,
Sakthi.