mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Point checkin. Hibernate is currently beating me up by not doing
what I expect when trying to determine the concrete type of a polymorphic type. Some major surgery seems to be in order. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@2927 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -222,4 +222,39 @@ public class BasicAttributesBeanImpl implements BasicAttributesBean
|
||||
{
|
||||
return fAccessDate;
|
||||
}
|
||||
|
||||
// TODO This is probably wrong.
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#equals(java.lang.Object)
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (this == obj)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (fID == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!(obj instanceof BasicAttributesBean))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return fID == ((BasicAttributesBean)obj).getId();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#hashCode()
|
||||
*/
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
if (fID == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return fID.hashCode();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user