[ 
https://issues.apache.org/jira/browse/CAY-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16572777#comment-16572777
 ] 

ASF GitHub Bot commented on CAY-2447:
-------------------------------------

GitHub user const1993 opened a pull request:

    https://github.com/apache/cayenne/pull/301

    CAY-2447 Added crypto support for java.time

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/const1993/cayenne feature/CAY-2447

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cayenne/pull/301.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #301
    
----
commit 097276917ca17d8d114a7a47d0655e7f8e504ac1
Author: kkomyak <const1993@...>
Date:   2018-08-07T14:30:46Z

    CAY-2447 Added crypto support for java.time

----


> crypto support for LocalDateTime
> --------------------------------
>
>                 Key: CAY-2447
>                 URL: https://issues.apache.org/jira/browse/CAY-2447
>             Project: Cayenne
>          Issue Type: Improvement
>    Affects Versions: 4.0.B2
>            Reporter: Vital Zanko
>            Assignee: Nikita Timofeev
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.M3
>
>
> java.time.LocalDateTime is not being encrypted. 
> org.apache.cayenne.crypto.transformer.value.DefaultValueTransformerFactory.objectToBytes
>  does not contain java.time.LocalDateTime:
> {code:java}
> java.lang.IllegalArgumentException: The type java.time.LocalDateTime for 
> attribute DbAttr: VARBINARY CRYPTO_birth_date[512] has no object-to-bytes 
> conversion
> at 
> org.apache.cayenne.crypto.transformer.value.DefaultValueTransformerFactory.createEncryptor(DefaultValueTransformerFactory.java:118)
> at 
> org.apache.cayenne.crypto.transformer.value.DefaultValueTransformerFactory.encryptor(DefaultValueTransformerFactory.java:103)
> at 
> org.apache.cayenne.crypto.transformer.value.LazyValueTransformerFactory.encryptor(LazyValueTransformerFactory.java:43)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to