java - how to update sql table from entity class? -


i changed of entity classes. added more columns , changed of column names. want learn how can update sql tables according these entities or how can re-create these tables entity classes.thanks help.

add line in hibernate mapping:

<property key="hibernate.hbm2ddl.auto">create</property> 

but app recreate table each time start app.

also can read chapter


Comments