[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-456) Implement JPA 2.0 metamodel APIs

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Aug 17 11:51:18 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/EJB-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33787#action_33787 ] 

Steve Ebersole commented on EJB-456:
------------------------------------

I played with it a bit in some of my criteria tests.  It works ok, as long as we stick to your guidelines above for the time being (using decalred vs non-declared etc).  

Some thoughts on your points:

1) wrt distinguishing many-to-many and one-to-many, that is not true -> CollectionPersister#isOneToMany() and CollectionPersister#isManyToMany()

2) wrt distinguishing many-to-one versus one-to-one, that is much more accurate.  It is doable, but there is not a simple, single contract method one can call to determine it.

3) for Member, do you mean java.lang.reflect.Member?  or javax.persistence.metamodel.Member?  In either case we need to be able to report the java.lang.reflect.Member, which was not clear to me from javax.persistence.metamodel.Member what is expected in the case of method access: the getter I assume?  At any rate, for Hibernate this is all contained in the underlying PropertyAccessor contract for said property.  The problem here is that the PropertyAccessor contract only allows (optionally) reporting the Method.  So we would need to update this contract a bit to support this requirement.

> Implement JPA 2.0 metamodel APIs
> --------------------------------
>
>                 Key: EJB-456
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-456
>             Project: Hibernate Entity Manager
>          Issue Type: Sub-task
>            Reporter: Steve Ebersole
>            Assignee: Emmanuel Bernard
>


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