0 Replies Latest reply on Dec 26, 2004 5:13 AM by graysonpierce

    hibernate.hbm2ddl.auto=update

    graysonpierce

      Hello,

      In an attempt to stop Hibernate from dropping and recreating tables with actual data I changed the setting in hibernate.properties from the default
      hibernate.hbm2ddl.auto=create-drop to hibernate.hbm2ddl.auto=update.

      That worked and Hibernate doesn't touch the tables however now I have the following problem:

      -When JBoss 4 initially comes up everything is fine. The Entity beans return the data
      -If I redeploy the .ejb3 file I get the following error:

      Caused by: java.io.InvalidClassException: local class incompatible: stream classdesc serialVersionUID = -7521933163152988638, local class serialVersionUID = -5000941548770925426

      I've checked to make sure that the client and the server reference the same version of the hibernate jar files and that both use the JRE of Java 5.

      I'm I going about this all wrong. Is this something Is it possible to do this as annotation in the Bean source instead?