• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is Sufficient to create a Table in database using Hibernate?

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I am using Spring+Hibernate combination for web application and data Insertion.My Question is If I have used something like
@Entity
@Table at the Top of a model class Is that sufficient for table creation in database or Do I need to seprately create a somwthing called hibernate.cfg.xml

I have seen many tutiorals online messing on this thing

What is right approach?

(I am using Spring+Hibernate)
Thanks
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a great blog article about JPA Schema Generation.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Roel De Nijs

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic