-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, Why your PersistenceFieldEvaluator did not work is hard to say, did you delete the storage after adding the PersistenceFieldEvaluator to ensure that there is no old data (that has the transient array not peristed)? One other tip: You can have a look in the PersistenceTypeDictionary.ptd file in the storage directory to identify all persisted classes and the fields they persisted.
|
Beta Was this translation helpful? Give feedback.
Hello,
it should be possible to get the Guava ImmutableList persisted. Using a custom PersistenceFieldEvaluator is a suitable approach. One thing you must consider is that there are several implementations of the abstract ImmutableList. The example below handles the RegularImmutableList and SingletonImmutableList implementations.
Why your PersistenceFieldEvaluator did not work is hard to say, did you delete the storage after adding the PersistenceFieldEvaluator to ensure that there is no old data (that has the transient array not peristed)?
One other tip: You can have a look in the PersistenceTypeDictionary.ptd file in the storage directory to identify all persisted classes and the fields…