0

In configuration file i am using this

<property name="hbm2ddl.auto">update</property>

Although there was no table in my database, but still with the update command it creates the table in database.

what i thought that hbm2ddl.auto= "update" use only to update the schema and to create the same we use "create".

i am still confused how that table come into existence.

or update is the reason to create the table.

Please help

  • 1
    update means update the schema to match what is needed. If there is no schema it will create one, if there is one it will be updated. – M. Deinum Jan 09 '15 at 12:48
  • possible duplicate of [Hibernate hbm2ddl.auto possible values and what they do?](http://stackoverflow.com/questions/438146/hibernate-hbm2ddl-auto-possible-values-and-what-they-do) – M. Deinum Jan 09 '15 at 12:51
  • not a duplicate deinum .... in that question meaning of update is not clear i.e If there is no schema it will create one, if there is one it will be updated –  Jan 09 '15 at 12:54

1 Answers1

0

Please refer to the attached image, tried documented as much as i can.

enter image description here

Ankur Singhal
  • 26,012
  • 16
  • 82
  • 116