You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Catalina Wei (JIRA)" <ji...@apache.org> on 2009/01/23 03:41:59 UTC

[jira] Resolved: (OPENJPA-856) JPA2 Query support for entity type expressions

     [ https://issues.apache.org/jira/browse/OPENJPA-856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Catalina Wei resolved OPENJPA-856.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

Support for entity type expression in JPA2 has been committed under svn r736881.

Open issues & limitations:

1. OpenJPA does now allow selection of an abstract entity, hence 
  TYPE(e) if e is mapped to abstract entity class will fail as a user error.

  For example,  in using entities defined in  org.apache.openjpa.persistence.inheritance.polymorphic package under openjpa-persistence-jdbc test

 the following query results in exception:
    SELECT  t.translatable FROM Translation t
      
    <openjpa-2.0.0-SNAPSHOT-runknown nonfatal user error> org.apache.openjpa.persistence.InvalidStateException: Cannot   instantiate virtual mapping "class org.apache.openjpa.persistence.inheritance.polymorphic.Translatable".
	at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.selectBaseMappings(JDBCStoreManager.java:1221)

 for the same reason,  the query below fails in the same error:
     SELECT  TYPE(t.translatable) FROM Translation t

2. No tests have been run for entities using JAVA interface classes. 
  Do we need to support TYPE(e) where e is referencing JAVA interface class which does have backing entity  implementation classes ?
 This is not being addressed in JPA2 Public Draft.


> JPA2 Query support for entity type expressions
> ----------------------------------------------
>
>                 Key: OPENJPA-856
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-856
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: query
>    Affects Versions: 2.0.0
>            Reporter: Catalina Wei
>            Assignee: Catalina Wei
>             Fix For: 2.0.0
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.