1 package ejava.examples.ejbwar.customer.bo;
2
3 import java.io.Serializable;
4
5 import javax.persistence.Column;
6 import javax.persistence.MappedSuperclass;
7 import javax.persistence.Version;
8 import javax.xml.bind.annotation.XmlAttribute;
9
10
11
12
13
14 @SuppressWarnings("serial")
15 @MappedSuperclass
16 public abstract class CustomerRepresentation implements Serializable {
17 public static final String NAMESPACE = "http://webejb.ejava.info/customer";
18
19 @Version
20 @Column(name="VERSION")
21 private int version;
22
23
24
25
26
27
28 @XmlAttribute(required=true)
29 public int getVersion() { return version; }
30 public void setVersion(int version) {
31 this.version = version;
32 }
33 }