Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2401

"Fields 'xxx' are not a default persistent type" warning message ignoring XML configuration.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 2.2.2
    • None
    • logging
    • None

    Description

      Hi, unless I set "@OneToMany" as shown here:
      https://github.com/gmazza/blog-samples/blob/master/jpa_and_junit/src/main/java/entities/Department.java#L47

      I'll get this warning message:
      678 CompanyPU WARN [main] openjpa.Runtime - Fields "employees" are not a default persistent type, and do not have any annotations indicating their persistence strategy. They will be treated as non-persistent. If you intended for these fields to be persistent, be sure to annotate them appropriately. Otherwise annotate them with @Transient.

      However, I shouldn't have to set that annotation because I've already declared one-to-many via XML configuration:
      https://github.com/gmazza/blog-samples/blob/master/jpa_and_junit/src/main/resources/entities/department.orm.xml#L29

      Attachments

        Activity

          People

            Unassigned Unassigned
            gmazza Glen Mazza
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: