Fixes problems AVM tables were having with utf8 encodiing and mysql.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3618 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-08-28 00:43:39 +00:00
parent 8031cc6574
commit 8c92c87ac3
8 changed files with 240 additions and 30 deletions

View File

@@ -30,6 +30,11 @@ class AVMStorePropertyImpl implements AVMStoreProperty, Serializable
{
private static final long serialVersionUID = -5419606158990318723L;
/**
* The Primary Key.
*/
private Long fID;
/**
* The store that owns this property.
*/
@@ -102,5 +107,44 @@ class AVMStorePropertyImpl implements AVMStoreProperty, Serializable
{
fValue = value;
}
/**
* Set the primary key. (For Hibernate)
* @param id The primary key.
*/
protected void setId(Long id)
{
fID = id;
}
/**
* Get the primary key. (For Hibernate)
* @return The primary key.
*/
protected Long getId()
{
return fID;
}
@Override
public boolean equals(Object other)
{
if (this == other)
{
return true;
}
if (!(other instanceof AVMStoreProperty))
{
return false;
}
AVMStoreProperty o = (AVMStoreProperty)other;
return fStore.equals(o.getStore()) && fName.equals(o.getName());
}
@Override
public int hashCode()
{
return fStore.hashCode() + fName.hashCode();
}
}