org.ektorp.support
Class Entity

java.lang.Object
  extended by org.ektorp.support.CouchDbDocument
      extended by org.ektorp.support.Entity
All Implemented Interfaces:
Serializable

public class Entity
extends CouchDbDocument
implements Serializable

Support class for domain entities. Enforces strict control of the id attribute and implements equals and hashCode that only considers id for equality.

Author:
henrik lundgren
See Also:
Serialized Form

Constructor Summary
Entity()
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class org.ektorp.support.CouchDbDocument
addInlineAttachment, getAttachments, getConflicts, getId, getRevision, getRevisions, hasConflict, isNew, removeAttachment, setId, setRevision
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entity

public Entity()
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011. All Rights Reserved.