mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -27,6 +27,11 @@ class NewInAVMStoreImpl implements NewInAVMStore, Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1905996612150732182L;
|
||||
|
||||
/**
|
||||
* The Primary Key.
|
||||
*/
|
||||
private Long fID;
|
||||
|
||||
/**
|
||||
* The AVMStore.
|
||||
*/
|
||||
@@ -86,5 +91,45 @@ class NewInAVMStoreImpl implements NewInAVMStore, Serializable
|
||||
{
|
||||
fAVMStore = store;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 NewInAVMStore))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
NewInAVMStore o = (NewInAVMStore)other;
|
||||
return fAVMStore.equals(o.getAvmStore()) &&
|
||||
fNode.equals(o.getNode());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return fAVMStore.hashCode() + fNode.hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user