0 Replies Latest reply on Dec 6, 2005 8:05 AM by Joao Montenegro

    Override defaults in ejb3.deployer/META-INF/persistence.prop

    Joao Montenegro Newbie

      Hi all,

      I can't find a way of override a specific hibernate property in persistence.properties (the default persistence config file inside ejb3.deploy/META-INF). The property is "hibernate.hbm2ddl.auto"

      I wish to disable the auto tables creation in my database. To so so, I need to comment or erase the line which configures this property. Ok, I simply don't put it in my persistence.xml in my ".par". Well... This won't disable this feature, since it is present in the standard config persistence.properties! There should be a way of doing something like:
      hibernate.hbm2ddl.auto=off or something to force the default to be overriden...

      In Hibernate docs I only see these options: update | create | create-drop

      Can you help me with this one?