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

Mapping an unsupported type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 1.2.2, 2.0.0, 2.1.0
    • 2.1.0
    • kernel
    • None

    Description

      As discussed on the dev mailing list [1]...

      I found that the following mapping:

      @Entity
      public class AnnoTest1 {

      @ManyToOne
      Object o;
      ...
      }

      This results in a warning message [2], but it is allowed. This JIRA will be used to detect this condition and fail fast.

      [1] http://openjpa.markmail.org/thread/6yphicehgclyobag
      [2] 297 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "test.AnnoTest1.o" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default.

      Attachments

        Activity

          People

            curtisr7 Richard G. Curtis
            curtisr7 Richard G. Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: