Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9604

wildfly-11.0.0.Final JPA

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Won't Do
    • Major
    • None
    • 11.0.0.Final
    • JPA / Hibernate
    • None

    Description

      I am deploying to above. I get this error message:

      {"jboss.persistenceunit.registrar#REGDB" => "org.hibernate.AnnotationException: Property no.tobiassenit.sipstack.sip.message.AbstractMessage.part has an unbound type and no explicit target entity. Resolve this Generic usage issue or set an explicit target attribute (eg @OneToMany(target=) or use an explicit @Type Caused by: org.hibernate.AnnotationException: Property no.tobiassenit.sipstack.sip.message.AbstractMessage.part has an unbound type and no explicit target entity. Resolve this Generic usage issue or set an explicit target attribute (eg @OneToMany(target=) or use an explicit @Type"}

      ,

      I have this code:

      @OneToOne(optional = true, cascade = CascadeType.ALL, targetEntity = AbstractPart.class)
      @JoinColumn(name = "PART", unique = false, nullable = true, updatable = false)
      protected X part;

      What about the target= vs the targetEntity=? There is no target attribute or @Type annotation available.

      Attachments

        Activity

          People

            Unassigned Unassigned
            trondarild Trond Arild Lode Tobiassen Heidelberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: