6 Replies Latest reply on Sep 9, 2005 7:29 AM by Emmanuel Bernard

    EJB3 RC1: Where has @Serializable gone??

    Warg Krumpf Newbie

      I have an entitybean with a collection of Strings, stored in serialized form into a blob.

      @Serialized
       public Collection<String> getRights() {
       ....
       }


      After upgrading to EJB3RC1/JBoss 4.0.3RC2 there is no longer a "@Serializable" annotation.

      I tried
      @Lob(type = LobType.BLOB, fetch=FetchType.EAGER)
       public Collection<String> getRights() {
       ....
       }

      instead, but i get
      Caused by: org.firebirdsql.jdbc.FBSQLException: I/O Exception. invalid BLOB type for operation
      at org.firebirdsql.jdbc.FBBlob.getBytes(FBBlob.java:302)
      at org.hibernate.type.SerializableToBlobType.get(SerializableToBlobType.java:56)
      at org.hibernate.type.AbstractLobType.nullSafeGet(AbstractLobType.java:43)
      at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
      at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:1761
      at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1314)
      at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1242)
      at org.hibernate.loader.Loader.getRow(Loader.java:1139)
      at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:552)
      at org.hibernate.loader.Loader.doQuery(Loader.java:666)
      at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:221)
      at org.hibernate.loader.Loader.loadEntity(Loader.java:1695)



      Any ideas?