Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0, 1.3.0
    • Component/s: docs
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Patrick Linskey added a comment -

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

        Show
        Patrick Linskey added a comment - I think of this as a feature, not a bug. Thoughts?
        Hide
        Marc Prud'hommeaux added a comment -

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

        Show
        Marc Prud'hommeaux added a comment - 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".
        Hide
        Craig L Russell added a comment -

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

        Show
        Craig L Russell added a comment - 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."

          People

          • Assignee:
            Pinaki Poddar
            Reporter:
            David Wisneski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development