Uploaded image for project: 'Hibernate ORM'
  1. HHH-1448

Subclasses not allowed to have "natural-id" tag.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Rejected
    • Affects versions: None
    • Fix versions: None
    • Components: None
    • Labels:
      None
    • Environment:
      Hibernate 3.x
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      I shall try to explain by a small example. I have aclass called "person" which has say an attribute "name" and "Birthday". I have a subclass of class "Person" called "Employee" and "Employee" has an attribute "ssn" which I want to treat as a natural-id. But Hibernate doesnot allow this. It doesnt allows natural-id tags for any subclass tag.
      I would really appreciate some help on this. I have tried to serach for some example mapping similar to my example but havent had any luck. If teher is some alternate way for me map this do let me know.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: