Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0 
Mapping documents:
<composite-id>
			<key-property name="secrPgmId" type="long" column="SECR_PGM_ID"/>
			<key-property name="secrMsrPrdId" type="long" column="MSR_PRD_ID"/>
		</composite-id>
I have to use the generator for the secrPgmId column. How can I do that. I had this code earlier which works fine.
<id name="secrPgmId" type="long" column="SECR_PGM_ID">
			<generator class="org.hibernate.id.TeradataSequenceGenerator">
				<param name="sequence">Program</param>
			</generator>
		</id>	
		
		<property name="secrMsrPrdId" type="long">
			<column name="MSR_PRD_ID" />
		</property>
But now I need to have MSR_PRD_ID also in the key. How can that be achieved?