mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Shored up the tests a bit. Made BasicAttributes into a component instead of a one-to-one
in the mapping file. Added missing equals and hashCode to Issuer. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@2929 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -26,7 +26,7 @@ import org.hibernate.Session;
|
||||
public class Issuer
|
||||
{
|
||||
/**
|
||||
* The name of this issuer. Used as the primary key in it's
|
||||
* The name of this issuer. Used as the primary key in its
|
||||
* mapping.
|
||||
*/
|
||||
private String fName;
|
||||
@@ -122,4 +122,30 @@ public class Issuer
|
||||
{
|
||||
fVers = vers;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#equals(java.lang.Object)
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (this == obj)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof Issuer))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return fName.equals(((Issuer)obj).getName());
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#hashCode()
|
||||
*/
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return fName.hashCode();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user