mirror of
https://github.com/google/nomulus.git
synced 2025-07-26 04:28:34 +02:00
Make entities serializable for DB validation (#1401)
* Make entities serializable for DB validation Make entities that are asynchronously replicated between Datastore and Cloud SQL serializable so that they may be used in BEAM pipeline based comparison tool. Introduced an UnsafeSerializable interface (extending Serializable) and added to relevant classes. Implementing classes are allowed some shortcuts as explained in the interface's Javadoc. Post migration we will decide whether to revert this change or properly implement serialization. Verified with production data.
This commit is contained in:
parent
0d5b436b41
commit
0978ede5d9
47 changed files with 333 additions and 62 deletions
|
@ -65,5 +65,10 @@ public final class SerializeUtils {
|
|||
}
|
||||
}
|
||||
|
||||
/** Serializes an object then deserializes it. This is typically used in tests. */
|
||||
public static Object serializeDeserialize(Object object) {
|
||||
return deserialize(Object.class, serialize(object));
|
||||
}
|
||||
|
||||
private SerializeUtils() {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue