Replies: 2 comments 1 reply
-
Currently there is no Example addressing static final objects explicitly.
When loading, the persisted state is restored! Not the one that’s comes from the class definition. There is also the possibility to register static final object as constants using a PersistenceRootResolver to enforce a stricter handling. But that’s currently not documented. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I also see no way to modify the initialization process of those static finals out of the box. |
Beta Was this translation helpful? Give feedback.
-
Is there an example how to store and retrieve "static final objects" (which are instantiated on startup) included in the objectgraph (for example as elements in a list)?
I'm thinkiing of a constant ID which is stored and mapped back after reading it into the "static final object"?
Beta Was this translation helpful? Give feedback.
All reactions