19 package com.mysql.clusterj.jpatest.model;
21 import java.io.Serializable;
49 public boolean equals(Object obj) {
50 if (obj == null || !this.getClass().equals(obj.getClass()))
53 return (this.longpk1 == o.longpk1
54 &&
this.longpk2 == o.longpk2
55 &&
this.stringpk.equals(o.stringpk));
59 public int hashCode() {
60 return stringpk.hashCode() + (int)longpk1 + (
int)longpk2;
66 result.append(
"LongLongStringOid[");
67 result.append(longpk1);
69 result.append(longpk2);
71 result.append(stringpk);
73 return result.toString();