[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4982) JPA OneToOne(optional=true) not supported, supported alternative NotFound() is hibernate-proprietary!

Eric Bouladier (JIRA) noreply at atlassian.com
Wed Sep 1 04:03:25 EDT 2010


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

Eric Bouladier commented on HHH-4982:
-------------------------------------

Changing composite primary key strategy to @IdClass and @JoinColumns (instead of @EmbeddedId and @PrimaryKeyJoinColumn) solves the problem. @OneToOne(optional=true) now is working (hibernate 3.5.5).

> JPA OneToOne(optional=true) not supported, supported alternative NotFound() is hibernate-proprietary!
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HHH-4982
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4982
>             Project: Hibernate Core
>          Issue Type: Bug
>    Affects Versions: 3.5.5
>         Environment: Hibernate 3.3.1, annotations 3.4.0, MsSQL DB.
>            Reporter: Bruno Melloni
>
> Rejected issue ANN-725 covers this partially.  I might have misunderstood, but it seems the reason for rejecting is that @NotFound provides the same capability.
> All information I could find for JPA and other ORM tools indicates that this capability is supplied by @OneToOne(optional=true).  Hibernate seems to be the lone ORM tool that requires the use of a proprietary annotation: @NotFound.
> @NotFound works, but the problem is that it makes the application no longer be pure-JPA.  Not supporting pure-JPA outer joins would seem to be a major bug.

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