You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "David Wisneski (JIRA)" <ji...@apache.org> on 2006/08/17 01:13:14 UTC

[jira] Created: (OPENJPA-20) Query can return embeddable class

Query can return embeddable class
---------------------------------

                 Key: OPENJPA-20
                 URL: http://issues.apache.org/jira/browse/OPENJPA-20
             Project: OpenJPA
          Issue Type: Bug
          Components: docs
            Reporter: David Wisneski
            Priority: Minor


 part 2 , chapter 4 of user manual on Entity, states that embeddable classes are never returned from a query.  
This is not true as in the query
   select e.address from EmpBean e

address could be defined as as embeddable class.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENJPA-20) Query can return embeddable class

Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476812 ] 

Patrick Linskey commented on OPENJPA-20:
----------------------------------------

I think of this as a feature, not a bug. Thoughts?

> Query can return embeddable class
> ---------------------------------
>
>                 Key: OPENJPA-20
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-20
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: docs
>            Reporter: David Wisneski
>            Priority: Minor
>
>  part 2 , chapter 4 of user manual on Entity, states that embeddable classes are never returned from a query.  
> This is not true as in the query
>    select e.address from EmpBean e
> address could be defined as as embeddable class.

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


[jira] Commented: (OPENJPA-20) Query can return embeddable class

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477043 ] 

Craig Russell commented on OPENJPA-20:
--------------------------------------

I agree with Marc that it's a bug in the doc. The doc could also be reworded like "Embedded classes cannot be used as the first entity in the FROM clause of a query. They can only be returned by projecting from an entity that embeds them."


> Query can return embeddable class
> ---------------------------------
>
>                 Key: OPENJPA-20
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-20
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: docs
>            Reporter: David Wisneski
>            Priority: Minor
>
>  part 2 , chapter 4 of user manual on Entity, states that embeddable classes are never returned from a query.  
> This is not true as in the query
>    select e.address from EmpBean e
> address could be defined as as embeddable class.

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


[jira] Commented: (OPENJPA-20) Query can return embeddable class

Posted by "Marc Prud'hommeaux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476856 ] 

Marc Prud'hommeaux commented on OPENJPA-20:
-------------------------------------------

Or, alternately, a bug in the documentation. The current documentation phrasing is meant to point out that if entity Address is embedded in entity Company, then "select a from Address a" will never return the Company's embedded address. This could be clarified to say something like "Embedded classes are never returned directly from a query unless the query uses a projection on owning class to the embedded instance".

> Query can return embeddable class
> ---------------------------------
>
>                 Key: OPENJPA-20
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-20
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: docs
>            Reporter: David Wisneski
>            Priority: Minor
>
>  part 2 , chapter 4 of user manual on Entity, states that embeddable classes are never returned from a query.  
> This is not true as in the query
>    select e.address from EmpBean e
> address could be defined as as embeddable class.

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