net.sf.jagzilla.hibernate
Class NamedQueryPrimaryKey

java.lang.Object
  extended bynet.sf.jagzilla.hibernate.NamedQueryPrimaryKey
All Implemented Interfaces:
java.io.Serializable

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

represents the primary key for the class NamedQuery.

Author:
mgriffa
See Also:
NamedQuery, Serialized Form

Constructor Summary
NamedQueryPrimaryKey()
           
 
Method Summary
 boolean equals(NamedQueryPrimaryKey o)
          Returns true if this NamedQueryPrimaryKey is equal to another NamedQueryPrimaryKey.
 boolean equals(java.lang.Object o)
          Returns true if this NamedQueryPrimaryKey is equal to another object.
 java.lang.String getName()
           
 int getUserId()
           
 int hashCode()
          Override hashCode.
 void setName(java.lang.String name)
           
 void setUserId(int userId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamedQueryPrimaryKey

public NamedQueryPrimaryKey()
Method Detail

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getUserId

public int getUserId()
Returns:
Returns the userId.

setUserId

public void setUserId(int userId)
Parameters:
userId - The userId to set.

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)
Returns true if this NamedQueryPrimaryKey is equal to another object.

Returns:
true if this NamedQueryPrimaryKey is equal to the specified object.

equals

public boolean equals(NamedQueryPrimaryKey o)
Returns true if this NamedQueryPrimaryKey is equal to another NamedQueryPrimaryKey.

Returns:
true if this NamedQueryPrimaryKey is equal to the specified object.

hashCode

public int hashCode()
Override hashCode.

Returns:
the Objects hashcode.


Distributed under the GPL. By Miguel Griffa. See the Jagzilla project page for more info.