by throwaway76324 · 2y ago · 0 comments
pseudo code (to not trigger language wars):
class Foo {
@Id
UUID id;
String name;
@Json
MyCustomModel model;
}
Adding fields is not an issue, as it will simply be missing a value when de-serializing. Your business logic will need to handle its absence, but that is no different than using MongoDB or "classic" table columns