Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@deVIAntCoDE
Copy link
Contributor

@deVIAntCoDE deVIAntCoDE commented Jun 15, 2016

Pull Request Checklist

Fixes

Fixes No java.time.LocalDate form mappings available

Purpose

Form mappings do not support java.time.LocalDate. This PR adds this functionality for form mapping

Background Context

Currently, to use java.time.LocalDate in domain objects mapped to form definitions, one has to take in the LocalDate in as a joda LocalDate and convert to java.time LocalDate. By introducing a localdate mapping for form data, one can use the new java.time.LocalDate directly.

@deVIAntCoDE
Copy link
Contributor Author

Hi @wsargent could you or anyone kindly have a look at this and let me know what you think. Thanks!

@wsargent
Copy link
Member

Hi @deVIAntCoDE Thanks! I'm at ScalaDays Berlin right now, but I'll look at it when I can.

@deVIAntCoDE
Copy link
Contributor Author

👍

@marcospereira
Copy link
Member

LGTM.

Should we expand this to support other types at java.time package (such as LocalDateTime, LocalTime, etc)?

@deVIAntCoDE
Copy link
Contributor Author

Yeah good point. I'll expand this to support the rest of types as well.

@deVIAntCoDE deVIAntCoDE force-pushed the add-java-time-form-mappings branch from 1b58942 to 0baf07a Compare June 17, 2016 14:55
@deVIAntCoDE deVIAntCoDE force-pushed the add-java-time-form-mappings branch from 0baf07a to e84debd Compare June 17, 2016 16:38
@gmethvin gmethvin merged commit f00e29a into playframework:master Jun 19, 2016
@mkurz mkurz added this to the 2.5.5 milestone Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants