-
Notifications
You must be signed in to change notification settings - Fork 336
Spring Cloud GCP for Spanner fails to use Instant in JSON column #2576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This may not be a bug on spring-cloud-gcp. From your stacktrace, looks like issue is with Gson not be able do conversion to json correctly. |
You might need to add |
Feels like this should be setup by default if you are using Spring Cloud
GCP and Spanner
…On Thu, Apr 25, 2024, 7:22 PM Mike Eltsufin ***@***.***> wrote:
You might need to add --add-opens java.base/java.time=ALL-UNNAMED the jvm
args.
—
Reply to this email directly, view it on GitHub
<#2576 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGG5GY6WGHMVKGQV6NZW3Y7G26PAVCNFSM6AAAAABCXHH4EOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGUYTINJQGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Maybe we can configure a Gson type adapter for |
Hello @meltsufin |
…o cover more cases. (GoogleCloudPlatform#2841)
…ues (@ablx) (#2881) * feat: #2576 Added typeadapter to read and write Instant values. (#2841) * chore: additional test cases for InstantTypeAdapterTest --------- Co-authored-by: Mirco Franzek <[email protected]>
Closing due to merged PR. |
Spring Boot 3.2.2
Spring Cloud GCP 5.0.1
Spring Cloud 2023.0.0
Java 21
If you have a model that looks like this:
The parent animal:
The column:
A
Cat
that inherits fromAnimal
:Trying to create a Cat and saving it:
Causes an issue:
The text was updated successfully, but these errors were encountered: