Hi All,
When I'm persisting some entities, everything seems to be going fine, util I get this error:
javax.ejb.EJBException: org.hibernate.type.SerializationException: could not serialize at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) : Caused by: org.hibernate.type.SerializationException: could not serialize at org.hibernate.util.SerializationHelper.serialize(SerializationHelper.java:152) at org.hibernate.util.SerializationHelper.serialize(SerializationHelper.java:172) : Caused by: java.io.NotSerializableException: cl.navix.benji.HotelReservationBooking at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
Duh!
The problem was not in that class, but in another entity referencing this class without a relationship annotation.
Thank you all anyway.
Ed.