> Secondly, the object you are passing is of type Integer and I'm not sure primitive types such as Integer can be stored by themselves. Normally if you need to store an integer or other primitive type, you would need to store it as part of an Object. I hope this helps you.
The storing of a primitive (and some more meta data) is the purpose of my Value class.
> Firstly, Serializable is an interface and not a concrete class. If the object you are passing as a parameter into the Value class had previously been stored in the database then your code should work
I would have expected at least an ObjectNotStorableException (as I enabled that feature in the configuration) if it is not possible in principle to store a member that is declared by way of an Interface.
But as I could not believe in the fact, that members that are declared by way of an interface are stored only with having stored the member value separately, I did test this with a self-written test interface: and it worked without any problem as expected (with an "empty" interface as Serializable and with one definiting some behaviour).
So there needs to be something very special with the Serializable. And with further testing I'm quite sure to know now when this problem occurs: if the member is declared by way of a standard JDK interface and it's value's class is a standard JDK one, too. E.g. storing also fails with declaring with CharSequence and setting it to a String value.
So I assume this to be a bug ... ?