[hibernate-issues] [Hibernate-JIRA] Created: (ANN-583) generator class with <composite-id>
sai sirisha (JIRA)
noreply at atlassian.com
Wed Mar 14 07:30:08 EDT 2007
generator class with <composite-id>
-----------------------------------
Key: ANN-583
URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-583
Project: Hibernate Annotations
Type: New Feature
Versions: 3.1beta9
Environment: Version 3.1, database is oracle
Reporter: sai sirisha
Priority: Critical
Attachments: DsEpsdDietProfileHdr.hbm.xml
We have a requirement in our project that along with composite keys we have to put one attribute as autoincrement or sequence.How can we do this.
e.g
<class name="xyz">
<composite-id name="id" class="com.iba.ehis.dobj.DsEpsdDietProfileHdrId" >
<key-many-to-one name="prEncounter" class="com.iba.ehis.dobj.PrEncounter">
<column name="OPERATING_FACILITY_ID" length="6" />
<column name="ENCOUNTER_ID" precision="12" scale="0" />
</key-many-to-one>
<key-property name="profileSl" type="java.lang.Long">
<column name="PROFILE_SL" precision="2" scale="0" />
</key-property>
</composite-id>
</class>
In the above code i want key-property "profileSl" as autoincriment field.How can i achive this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list