No SynchronizeMappings property, no @GeneratedValues annotation.  How
frustrating.  Thanks for your help, though :-).

I started a clean project, still have the issue.  My classes are a little
different:

@Entity
@Table(name="QUESTION_RESULTS")
public class QuestionResults implements Serializable {
        @EmbeddedId
        private QuestionResultsPK pk;

        private int answer;

        @ManyToOne
        @JoinColumn(name="QUESTIONID")
        private QuestionProp questionid;

        @ManyToOne
        @JoinColumn(name="SURVEYRESULTSID")
        private SurveyResults surveyresultsid;

and for the PK:

@Embeddable
public class QuestionResultsPK implements Serializable {
        @Column(name="SURVEYRESULTSID", insertable=false, updatable=false)
        private long surveyresultsid;

        @Column(name="QUESTIONID", insertable=false, updatable=false)
        private long questionid;

I even tried adding @Id in the PK, to no avail.  I think I'm going to break
down and RTFM.

Eric

-- 
View this message in context: 
http://n2.nabble.com/PK-Problem%2C-mismatched-property-tp1078084p1078725.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to