19 package com.mysql.clusterj.jpatest.model;
21 import java.io.Serializable;
22 import javax.persistence.OneToOne;
37 @javax.persistence.Entity
38 @javax.persistence.Table(
name=
"longintstringpk")
39 @javax.persistence.IdClass(value=LongIntStringOid.class)
43 @javax.persistence.Column(
name=
"longpk")
47 @javax.persistence.Column(
name=
"intpk")
51 @javax.persistence.Column(
name=
"stringpk")
54 @javax.persistence.Column(
name=
"stringvalue")
55 private String stringvalue;
57 @OneToOne(mappedBy =
"longIntStringPKOneOne")
63 public Long getLongpk() {
67 public void setLongpk(Long value) {
71 public int getIntpk() {
75 public void setIntpk(
int value) {
79 public String getStringpk() {
83 public void setStringpk(
String value) {
88 return longIntStringFKOneOne;
92 longIntStringFKOneOne = value;
97 o.longpk = getPK1(
id);
99 o.stringpk = getPK3(
id);
100 o.stringvalue = getValue(
id);
109 public String toString() {
111 result.append(
"LongIntStringPK[");
112 result.append(longpk);
114 result.append(intpk);
115 result.append(
",\"");
116 result.append(stringpk);
117 result.append(
"\"]: ");
118 result.append(stringvalue);
120 return result.toString();