cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject cayenne git commit: CAY-2103 cayenne-crypto: support for mapping non-String and non-binary types
Date Fri, 19 Aug 2016 13:36:56 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master 756497d02 -> 865f04f56


CAY-2103 cayenne-crypto: support for mapping non-String and non-binary types


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/865f04f5
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/865f04f5
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/865f04f5

Branch: refs/heads/master
Commit: 865f04f564f182ed295450b16300795da0fdeacb
Parents: 756497d
Author: Andrei Tomashpolskiy <nordmann89@gmail.com>
Authored: Fri Aug 19 15:04:56 2016 +0300
Committer: Andrei Tomashpolskiy <nordmann89@gmail.com>
Committed: Fri Aug 19 15:04:56 2016 +0300

----------------------------------------------------------------------
 .../crypto/transformer/value/DefaultValueTransformerFactory.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/865f04f5/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/value/DefaultValueTransformerFactory.java
----------------------------------------------------------------------
diff --git a/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/value/DefaultValueTransformerFactory.java
b/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/value/DefaultValueTransformerFactory.java
index c4f2964..6c4d194 100644
--- a/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/value/DefaultValueTransformerFactory.java
+++ b/cayenne-crypto/src/main/java/org/apache/cayenne/crypto/transformer/value/DefaultValueTransformerFactory.java
@@ -165,6 +165,8 @@ public class DefaultValueTransformerFactory implements ValueTransformerFactory
{
         map.put(Byte.TYPE.getName(), ByteConverter.INSTANCE);
 
         map.put(Boolean.class.getName(), BooleanConverter.INSTANCE);
+        map.put(Boolean.TYPE.getName(), BooleanConverter.INSTANCE);
+
         map.put(Date.class.getName(), UtilDateConverter.INSTANCE);
         map.put(BigInteger.class.getName(), BigIntegerConverter.INSTANCE);
         map.put(BigDecimal.class.getName(), BigDecimalConverter.INSTANCE);
@@ -198,6 +200,8 @@ public class DefaultValueTransformerFactory implements ValueTransformerFactory
{
         map.put(Byte.TYPE.getName(), ByteConverter.INSTANCE);
 
         map.put(Boolean.class.getName(), BooleanConverter.INSTANCE);
+        map.put(Boolean.TYPE.getName(), BooleanConverter.INSTANCE);
+
         map.put(Date.class.getName(), UtilDateConverter.INSTANCE);
         map.put(BigInteger.class.getName(), BigIntegerConverter.INSTANCE);
         map.put(BigDecimal.class.getName(), BigDecimalConverter.INSTANCE);


Mime
View raw message