[hibernate-issues] [Hibernate-JIRA] Closed: (ANN-583) generator class with <composite-id>

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Wed Mar 14 10:55:08 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-583?page=all ]
     
Max Rydahl Andersen closed ANN-583:
-----------------------------------

    Resolution: Rejected

use the user forum

> 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
>
> Original Estimate: 3 weeks
>         Remaining: 3 weeks
>
> 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