net.ramapuram.thomas.model.opac
Class Comment

java.lang.Object
  extended by net.ramapuram.thomas.model.BaseObject
      extended by net.ramapuram.thomas.model.opac.Comment
All Implemented Interfaces:
java.io.Serializable

public class Comment
extends BaseObject

User: Thomas Emmanuel Ramapuram Date: 16/11/11 Time: 6:21 PM

See Also:
Serialized Form

Constructor Summary
Comment()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares object equality.
 Book getBook()
           
 java.lang.String getComment()
           
 java.util.Date getEnteredOn()
           
 java.lang.Long getId()
           
 User getUser()
           
 int hashCode()
          When you override equals, you should override hashCode.
 void setBook(Book book)
           
 void setComment(java.lang.String comment)
           
 void setEnteredOn(java.util.Date enteredOn)
           
 void setId(java.lang.Long id)
           
 void setUser(User user)
           
 java.lang.String toString()
          Returns a multi-line String with key=value pairs.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Comment

public Comment()
Method Detail

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getUser

public User getUser()

setUser

public void setUser(User user)

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String comment)

getEnteredOn

public java.util.Date getEnteredOn()

setEnteredOn

public void setEnteredOn(java.util.Date enteredOn)

getBook

public Book getBook()

setBook

public void setBook(Book book)

equals

public boolean equals(java.lang.Object o)
Description copied from class: BaseObject
Compares object equality. When using Hibernate, the primary key should not be a part of this comparison.

Specified by:
equals in class BaseObject
Parameters:
o - object to compare to
Returns:
true/false based on equality tests

hashCode

public int hashCode()
Description copied from class: BaseObject
When you override equals, you should override hashCode. See "Why are equals() and hashCode() importation" for more information: http://www.hibernate.org/109.html

Specified by:
hashCode in class BaseObject
Returns:
hashCode

toString

public java.lang.String toString()
Description copied from class: BaseObject
Returns a multi-line String with key=value pairs.

Specified by:
toString in class BaseObject
Returns:
a String representation of this class.


Copyright © 2011. All Rights Reserved.