I know that serializing an object in a field of a record is not good for long time persistence, because just a little modifications to the class can make the old unreadable...
But my question is: are there possibilities that putting a short in a field will cause me problems in the future with new versions of jboss or jdk?
I'm using CMP2.0:
* @jboss:column-name name="myarray"
public abstract short getArray();
public abstract void setArray( short a);
Thank you in advance
primitive types should be ok, their sizes are defined in the vm spec