[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-6234) Create binding and relational state classes for composite IDs

Gail Badner (JIRA) noreply at atlassian.com
Wed May 18 21:58:24 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gail Badner updated HHH-6234:
-----------------------------

    Description: 
Here are the cases listed in JSR 317:

Section 11.1.15 for @EmbeddedId

Section 11.1.19 for @IdClass

Section 2.4.1.3 for derived identities:

Example 1 case a)   Parent: Single @Id       Dependent: @IdClass
Example 1 case b)   Parent: Single @Id       Dependent: @EmbeddedId

Example 2 case a)   Parent: @IdClass         Dependent: @IdClass
Example 2 case b)   Parent: @IdClass         Dependent: @EmbeddedId

Example 3 case a)   Parent: @EmbeddedId      Dependent: @IdClass
Example 3 case b)   Parent: @EmbeddedId      Dependent: @EmbeddedId

Example 4 case a)   Parent: @Single Id       Dependent: Single @Id is @OneToOne
Example 4 case b)   Parent: @Single Id       Dependent: Single @Id and separate @MapsId on @OneToOne

Example 5 case a)   Parent: @IdClass         Dependent: @IdClass @Id is @OneToOne
Example 5 case b)   Parent: @IdClass         Dependent: @EmbeddedId and separate @MapsId on @OneToOne

Example 6 case a)   Parent: @EmbeddedId      Dependent: @IdClass @Id is @OneToOne
Example 6 case b)   Parent: @EmbeddedId      Dependent: @EmbeddedId and separate @MapsId on @OneToOne


  was:
Here are the cases listed in JSR 317:

Section 11.1.15 for @EmbeddedId

Section 11.1.19 for @IdClass

Section 2.4.1.3 for derived identities:

                    Parent Entity     Dependent Entity

Example 1 case a:   Single @Id        @IdClass
Example 1 case b:   Single @Id        @EmbeddedId

Example 2 case a:   @IdClass          @IdClass
Example 2 case b:   @IdClass          @EmbeddedId

Example 3 case a:   @EmbeddedId       @IdClass
Example 3 case b:   @EmbeddedId       @EmbeddedId

Example 4 case a:   @Single Id        Single @Id is @OneToOne
Example 4 case b:   @Single Id        Single @Id and separate @MapsId on @OneToOne

Example 5 case a:   @IdClass          @IdClass @Id is @OneToOne
Example 5 case b:   @IdClass          @EmbeddedId and separate @MapsId on @OneToOne

Example 6 case a:   @EmbeddedId       @IdClass @Id is @OneToOne
Example 6 case b:   @EmbeddedId       @EmbeddedId and separate @MapsId on @OneToOne



> Create binding and relational state classes for composite IDs
> -------------------------------------------------------------
>
>                 Key: HHH-6234
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6234
>             Project: Hibernate Core
>          Issue Type: Task
>          Components: core
>            Reporter: Gail Badner
>            Assignee: Gail Badner
>             Fix For: 4.0.0.Beta1
>
>
> Here are the cases listed in JSR 317:
> Section 11.1.15 for @EmbeddedId
> Section 11.1.19 for @IdClass
> Section 2.4.1.3 for derived identities:
> Example 1 case a)   Parent: Single @Id       Dependent: @IdClass
> Example 1 case b)   Parent: Single @Id       Dependent: @EmbeddedId
> Example 2 case a)   Parent: @IdClass         Dependent: @IdClass
> Example 2 case b)   Parent: @IdClass         Dependent: @EmbeddedId
> Example 3 case a)   Parent: @EmbeddedId      Dependent: @IdClass
> Example 3 case b)   Parent: @EmbeddedId      Dependent: @EmbeddedId
> Example 4 case a)   Parent: @Single Id       Dependent: Single @Id is @OneToOne
> Example 4 case b)   Parent: @Single Id       Dependent: Single @Id and separate @MapsId on @OneToOne
> Example 5 case a)   Parent: @IdClass         Dependent: @IdClass @Id is @OneToOne
> Example 5 case b)   Parent: @IdClass         Dependent: @EmbeddedId and separate @MapsId on @OneToOne
> Example 6 case a)   Parent: @EmbeddedId      Dependent: @IdClass @Id is @OneToOne
> Example 6 case b)   Parent: @EmbeddedId      Dependent: @EmbeddedId and separate @MapsId on @OneToOne

-- 
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