19 package com.mysql.clusterj.jpatest.model;
21 import java.io.IOException;
22 import java.io.ObjectInputStream;
23 import java.io.ObjectOutputStream;
24 import java.io.Serializable;
26 import javax.persistence.Basic;
42 @javax.persistence.Entity
43 @javax.persistence.Table(
name=
"t_basic")
46 private static final long serialVersionUID = -5449615148226881972L;
64 public void setId(
int id) {
68 public int getMagic() {
72 public void setMagic(
int magic) {
80 public void setEmbedded(
Embedded embedded) {
81 this.embedded = embedded;
84 private void writeObject(ObjectOutputStream out)
throws IOException {
85 out.defaultWriteObject();
88 private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException {
89 in.defaultReadObject();
95 buffer.append(
"Embedding id: ");
97 buffer.append(
"; magic: ");
99 buffer.append(
"; embedded: ");
100 buffer.append(embedded.toString());
101 return buffer.toString();