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:
Britt Park
2006-05-20 22:30:35 +00:00
parent 6c1801b9ff
commit dd585adedf
11 changed files with 36 additions and 131 deletions

View File

@@ -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();
}
}