edu.iastate.metnet.hibernate
Class EntitycommentKey

java.lang.Object
  extended by edu.iastate.metnet.hibernate.EntitycommentKey
All Implemented Interfaces:
java.io.Serializable

public class EntitycommentKey
extends java.lang.Object
implements java.io.Serializable

A class representing a composite primary key id for the entitycomment table. This object should only be instantiated for use with instances of the Entitycomment class.

See Also:
Serialized Form

Constructor Summary
EntitycommentKey()
          Simple constructor of EntitycommentKey instances.
 
Method Summary
 boolean equals(java.lang.Object rhs)
          Implementation of the equals comparison on the basis of equality of the id components.
 java.lang.String getComment()
          Returns the value of the comment property.
 java.lang.Integer getEntityid()
          Returns the value of the entityid property.
 int hashCode()
          Implementation of the hashCode method conforming to the Bloch pattern with the exception of array properties (these are very unlikely primary key types).
 void setComment(java.lang.String comment)
          Sets the value of the comment property.
 void setEntityid(java.lang.Integer entityid)
          Sets the value of the entityid property.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntitycommentKey

public EntitycommentKey()
Simple constructor of EntitycommentKey instances.

Method Detail

getComment

public java.lang.String getComment()
Returns the value of the comment property.

Returns:
java.lang.String

setComment

public void setComment(java.lang.String comment)
Sets the value of the comment property.

Parameters:
comment -

getEntityid

public java.lang.Integer getEntityid()
Returns the value of the entityid property.

Returns:
java.lang.Integer

setEntityid

public void setEntityid(java.lang.Integer entityid)
Sets the value of the entityid property.

Parameters:
entityid -

equals

public boolean equals(java.lang.Object rhs)
Implementation of the equals comparison on the basis of equality of the id components.

Overrides:
equals in class java.lang.Object
Parameters:
rhs -
Returns:
boolean

hashCode

public int hashCode()
Implementation of the hashCode method conforming to the Bloch pattern with the exception of array properties (these are very unlikely primary key types).

Overrides:
hashCode in class java.lang.Object
Returns:
int