Uploaded image for project: 'Hibernate ORM'
  1. HHH-9298

Embedded NamedAttributeNode not supported in NamedEntityGraph

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 4.3.5, 5.0.3
    • Fix versions: None
    • Components: None
    • Labels:
    • Environment:
      Wildfly 8.1.0
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      I'm trying to deploy an app to Wildfly 8.1.0 (Hibernate 4.3.5), but Hibernate AttributeNodeImpl is throwing an exception - "Attribute x is not a managed type". I looked at the code and it's checking for Basic or Embedded annotation on lines 123-128 and throwing an exception if found.

      My attribute is Embedded. According to JPA spec, Entity, MappedSuperclass and Embeddable are all managed types. Also, online resources and the book "Pro JPA 2" provide examples of Entity Graphs with Embedded attribute nodes.

      I've attached two classes which should reproduce the issue.

        Attachments

          Activity

            People

            • Votes:
              15 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

              • Created:
                Updated: