View Javadoc
1 package net.sf.flock.hibernate; 2 3 public class Entity { 4 5 private String id; 6 7 public String getId() { 8 return id; 9 } 10 11 protected void setId(String id) { 12 this.id = id; 13 } 14 15 public boolean equals(Object obj) { 16 if (obj==this) 17 return true; 18 if (obj==null) 19 return false; 20 if (id==null) 21 return false; 22 if (obj instanceof Entity) { 23 if (this.getClass().equals(obj.getClass())) { 24 return id.equals(((Entity)obj).getId()); 25 } 26 } 27 return false; 28 } 29 30 }

This page was automatically generated by Maven