You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2016/08/22 10:57:20 UTC
[jira] [Updated] (CAY-2106) cayenne-crypto: allow DI contribution
of type converters inside ValueTransformerFactory
[ https://issues.apache.org/jira/browse/CAY-2106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrus Adamchik updated CAY-2106:
---------------------------------
Description:
Currently we allow to override the entire ValueTransformerFactory. Though most of the time all we care about is adding support for a new Java data type. Per CAY-2103 we already support a bunch of them, but there are ExtendedTypes, etc. So the goal of this task is making it easy to contribute BytesConverters for various types. Both for DB to/from byte[] and Object to/from byte[] conversions. We may add DI maps for those and user-friendly builder methods.
Also within ValueTransformerFactory there a 4 maps of BytesConverters. I think we can reduce them to just 2, as currently the pairs are identical.
was:Currently we allow to override the entire ValueTransformerFactory. Though most of the time all we care about is adding support for a new Java data type. Per CAY-2103 we already support a bunch of them, but there are ExtendedTypes, etc. So the goal of this task is making it easy to contribute BytesConverters for various types. Both for DB <-> byte[] and Object <-> byte[] conversations.
> cayenne-crypto: allow DI contribution of type converters inside ValueTransformerFactory
> ---------------------------------------------------------------------------------------
>
> Key: CAY-2106
> URL: https://issues.apache.org/jira/browse/CAY-2106
> Project: Cayenne
> Issue Type: Improvement
> Reporter: Andrus Adamchik
> Assignee: Andrus Adamchik
>
> Currently we allow to override the entire ValueTransformerFactory. Though most of the time all we care about is adding support for a new Java data type. Per CAY-2103 we already support a bunch of them, but there are ExtendedTypes, etc. So the goal of this task is making it easy to contribute BytesConverters for various types. Both for DB to/from byte[] and Object to/from byte[] conversions. We may add DI maps for those and user-friendly builder methods.
> Also within ValueTransformerFactory there a 4 maps of BytesConverters. I think we can reduce them to just 2, as currently the pairs are identical.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)