01: package org.objectweb.speedo.pobjects.inheritance.ejboo2;
02:
03: import java.io.*;
04:
05: /**
06: * Auto-generated by:
07: * kodo.enhance.ApplicationIdTool
08: */
09: public class MarchePersistantImplId implements Serializable {
10: static {
11: // register persistent class in JVM
12: Class c = MarchePersistantImpl.class;
13: }
14:
15: public Long id;
16:
17: public MarchePersistantImplId() {
18: }
19:
20: public MarchePersistantImplId(String fromString) {
21: if ("null".equals(fromString))
22: id = null;
23: else
24: id = new Long(fromString);
25: }
26:
27: public String toString() {
28: return String.valueOf(id);
29: }
30:
31: public int hashCode() {
32: return ((id == null) ? 0 : id.hashCode());
33: }
34:
35: public boolean equals(Object obj) {
36: if (this == obj)
37: return true;
38: if (!(obj instanceof MarchePersistantImplId))
39: return false;
40:
41: MarchePersistantImplId other = (MarchePersistantImplId) obj;
42: return ((id == null && other.id == null) || (id != null && id
43: .equals(other.id)));
44: }
45: }
|