mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Integrated Content Properties Refactor and Content Purge
- MOB-30: Content Purge - MOB-415: Content Properties Refactor - Adds to MOB-214: Upgrade scripts for Ent DBs git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14810 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -266,13 +266,27 @@ public class NodePropertyValue implements Cloneable, Serializable
|
||||
@Override
|
||||
protected ValueType getPersistedType(Serializable value)
|
||||
{
|
||||
return ValueType.STRING;
|
||||
if (value instanceof Long)
|
||||
{
|
||||
return ValueType.LONG;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ValueType.STRING;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
Serializable convert(Serializable value)
|
||||
{
|
||||
return DefaultTypeConverter.INSTANCE.convert(ContentData.class, value);
|
||||
if (value instanceof Long)
|
||||
{
|
||||
return value;
|
||||
}
|
||||
else
|
||||
{
|
||||
return DefaultTypeConverter.INSTANCE.convert(ContentData.class, value);
|
||||
}
|
||||
}
|
||||
},
|
||||
NODEREF
|
||||
|
Reference in New Issue
Block a user