1 Reply Latest reply on May 24, 2003 4:51 PM by Juha Lindfors

    Putting an array in a field

    Matteo Newbie

      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:

      /**
      * @ejb:persistent-field
      *
      * @jboss:column-name name="myarray"
      **/
      public abstract short[] getArray();
      public abstract void setArray( short[] a);

      Thank you in advance
      fz