I am in the process of learning JPA - Hibernate.
I am following this article
In Dog.java it is mentioned as @Table(name = "dog")
.
In persistence.xml
I have the following
<property name="hibernate.hbm2ddl.auto" value="create"/>
Does this creates table dog in database? I have not created table Dog in database. So in production environment this could be dangerous though. In such scenarios what should be ideal value for hibernate.hbm2ddl.auto
?
Any suggestions?