19 package com.mysql.clusterj.jpatest.model;
21 import java.io.Serializable;
22 import java.io.ObjectInputStream;
23 import java.io.ObjectOutputStream;
24 import java.io.IOException;
26 import javax.persistence.Basic;
42 @javax.persistence.Embeddable
43 public class Embedded implements Serializable {
45 private static final long serialVersionUID = -7939440091193693312L;
60 public void setAge(
int age) {
68 public void setName(
String name) {
72 private void writeObject(ObjectOutputStream out)
throws IOException {
73 out.defaultWriteObject();
76 private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException {
77 in.defaultReadObject();
83 buffer.append(
"Embedded name: ");
85 buffer.append(
"; age: ");
87 return buffer.toString();