org.zeroexchange.model
Class StringPKPersistent

java.lang.Object
  extended by org.zeroexchange.model.Persistent
      extended by org.zeroexchange.model.StringPKPersistent
All Implemented Interfaces:
Serializable, Identifiable<String>
Direct Known Subclasses:
City, Country, Dictionary, PropertyType, Role

@MappedSuperclass
public class StringPKPersistent
extends Persistent
implements Identifiable<String>

Base class for persistent entities with string primary key.

Author:
black
See Also:
Serialized Form

Field Summary
static String FIELD_ID
           
 
Constructor Summary
StringPKPersistent()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
           
 int hashCode()
           
 void setId(String id)
           
 
Methods inherited from class org.zeroexchange.model.Persistent
getTransientValues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_ID

public static final String FIELD_ID
See Also:
Constant Field Values
Constructor Detail

StringPKPersistent

public StringPKPersistent()
Method Detail

getId

public String getId()
Specified by:
getId in interface Identifiable<String>

setId

public void setId(String id)
Specified by:
setId in interface Identifiable<String>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2013. All Rights Reserved.