StandardServiceRegistry ssr = new StandardServiceRegistryBuilder().configure("").build() To create the Persistence class, right click on src/main/java - New - Class - specify the class name with package - finish. If annotation is not specified, property name will be used as the column name by default. If you don't use annotation, hibernate will use the class name as the table name by annotation marks the identifier for this annotation specifies the details of the column for this property or field. But here, we are using annotation marks this class as an annotation specifies the table name where data of this entity is to be persisted. Here, we are creating the same persistent class which we have created in the previous topic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |