[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1152) Value object(<component>) inheritance mapping

Stefan Fromm (JIRA) noreply at atlassian.com
Fri Nov 7 08:09:18 EST 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31646#action_31646 ] 

Stefan Fromm commented on HHH-1152:
-----------------------------------

I'm trying to implement the Role Object Pattern for domain objects. I would need component inheritance for the role objects. Treating them as entities is not possible, because they appear to be the same object as their core object - they have the same identity. Adding more than 1 role object to the core object results in a NonUniqueObjectException. I have to change back my domain model to the Extension Object Pattern where the extension/role objects are not identical to their core object.

I agree with Ilya. "table per class hierarchy" would suffice initially.

> Value object(<component>) inheritance mapping
> ---------------------------------------------
>
>                 Key: HHH-1152
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1152
>             Project: Hibernate Core
>          Issue Type: New Feature
>          Components: core
>    Affects Versions: 3.1 beta 2
>            Reporter: Vjeran Marcinko
>            Priority: Minor
>
> Though fine-grained object mapping is one of Hibernate's main objectives, it still doesn't support *value object* (<component>) inheritance mapping, only entity inheritance mapping.
> It would be best if <component> tag could also contain similar tags for inheritance as entity does.

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