Handle RolledbackException better (non-functional change)

Added conversion from Enum types to String


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2315 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-02-07 17:50:18 +00:00
parent 57ed31d277
commit f9cb128ed5
2 changed files with 22 additions and 0 deletions

View File

@@ -235,6 +235,19 @@ public class DefaultTypeConverter
});
//
// From enum
//
INSTANCE.addConverter(Enum.class, String.class, new TypeConverter.Converter<Enum, String>()
{
public String convert(Enum source)
{
return source.toString();
}
});
//
// Number to Subtypes and Date
//