19 package com.mysql.clusterj.jpatest.model;
21 import java.io.Serializable;
22 import java.util.Collection;
23 import java.util.List;
24 import javax.persistence.OneToMany;
37 @javax.persistence.Entity
38 @javax.persistence.Table(
name=
"longlongstringpk")
39 @javax.persistence.IdClass(value=LongLongStringOid.class)
43 @javax.persistence.Column(
name=
"longpk1")
47 @javax.persistence.Column(
name=
"longpk2")
51 @javax.persistence.Column(
name=
"stringpk")
54 @javax.persistence.Column(
name=
"stringvalue")
55 private String stringvalue;
57 @OneToMany(mappedBy =
"longLongStringPKOneMany")
58 private Collection<LongLongStringFKManyOne> longLongStringFKManyOnes;
63 public long getLongpk1() {
67 public void setLongpk1(
long value) {
71 public long getLongpk2() {
75 public void setLongpk2(
long value) {
79 public String getStringpk() {
83 public void setStringpk(
String value) {
87 public Collection<LongLongStringFKManyOne> getLongLongStringFKRelationships() {
88 return longLongStringFKManyOnes;
91 public void setLongLongStringFKRelationships(Collection<LongLongStringFKManyOne> value) {
92 longLongStringFKManyOnes = value;
97 o.longpk1 = getPK1(
id);
98 o.longpk2 = getPK2(
id);
99 o.stringpk = getPK3(
id);
100 o.stringvalue = getValue(
id);
109 public String toString() {
111 result.append(
"LongLongStringPK[");
112 result.append(longpk1);
114 result.append(longpk2);
115 result.append(
",\"");
116 result.append(stringpk);
117 result.append(
"\"]: ");
118 result.append(stringvalue);
120 return result.toString();