Skip to content
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

Make UUID implement java.io.Serializable on jvm #282

Closed
wants to merge 1 commit into from

Conversation

mklkj
Copy link

@mklkj mklkj commented Dec 30, 2023

No description provided.

@hfhbd
Copy link
Owner

hfhbd commented Jan 11, 2024

Can you please add a use-case? Why do you need broken by design Java serialization? There is already support for kotlinx serialization.
Also, the current implementation does not support persistent serialization.

@mklkj
Copy link
Author

mklkj commented Jan 12, 2024

Of course. My case is using UUID in a Kotlin Multiplatform app. I'm using Voyager for navigation and I want to pass UUID objects between screens, but these objects need to be Serializable on Android (as described here https://voyager.adriel.cafe/state-restoration#multiplatform-state-restoration)

@Melodeiro
Copy link

Using UUID with neo4j OGM library requires IDs to implement java.io.Serializable, so it would be nice to have the same entity for ID from db and the one which is passed between the multiplatform client and the server, for example

@hfhbd
Copy link
Owner

hfhbd commented Feb 4, 2024

@mklkj Why do you need Serializable? What about Parcelable support instead? See #297

@Melodeiro How do you test multiplatform clients when using JVM Serializable, eg on your backend server only?

@mklkj
Copy link
Author

mklkj commented Feb 7, 2024

@hfhbd Serializable was just the simplest and sufficient way to solve my problem. Parcelable will work too

@hfhbd hfhbd closed this in #297 Mar 19, 2024
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.

3 participants