public class FieldKey extends Object implements Comparable<FieldKey>
| Constructor and Description |
|---|
FieldKey(Class<?> entityClass,
String columnName)
Construct a FieldKey Instance
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FieldKey another)
Compares this object with the specified object for order.
|
boolean |
equals(Object another)
Indicates whether some other object is "equal to" this one.
|
String |
getColumnName()
Returns name of "mappedBy" field
|
Class<?> |
getEntityClass()
Returns Class of entity with one or more OneToMany or ManyToOne annotations
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
setColumnName(String columnName)
Set name of "mappedBy" field
|
void |
setEntityClass(Class<?> entityClass)
Set class of entity with one or more OneToMany or ManyToOne annotations
|
public int compareTo(FieldKey another)
compareTo in interface Comparable<FieldKey>another - The object to be compared.ClassCastException - if the specified object's type prevents it
from being compared to this object.public Class<?> getEntityClass()
public void setEntityClass(Class<?> entityClass)
entityClass - Classpublic String getColumnName()
public void setColumnName(String columnName)
columnName - Stringpublic int hashCode()
java.util.Hashtable.hashCode in class ObjectObject.hashCode()public boolean equals(Object another)
equals in class ObjectObject.equals(java.lang.Object)This documentation is licensed by Andrew Bowley under the GPLv3 License.