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

the column for @id is named id no matter the field name or @column

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: sql
    • Labels:
    • Environment:
      ubuntu 64bits, java 1.7.0_01

      Description

      I have an entity with an Id:
      @Entity
      @Table(name = "Domain")
      public class Domain implements java.io.Serializable, Comparable<Domain> {
      ...

      @Id
      @Column(name = "name", unique = true, nullable = false)
      public final String getName()

      { return this.name; }

      ...

      still openjpa seems to be querying for a column id instead of name

        Attachments

          Activity

            People

            • Assignee:
              curtisr7 Richard G. Curtis
              Reporter:
              santiagozky Santiago GarcĂ­a Pimentel
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: