Skip to content

Create a new database using MySQLWorkbench. Create a regular java project and connect the JPA and Hibernate libraries to it. Create a file with persistence.xml settings in the META-INF folder. And create an Animal class with get and set methods as an entity to our table. And using jpa to make crud in the AnimalHelper class.

Notifications You must be signed in to change notification settings

Minisiia/JpaHibernateAnimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JpaHibernateAnimal

Create a new database using MySQLWorkbench. Create a regular java project and connect the JPA and Hibernate libraries to it. Create a file with persistence.xml settings in the META-INF folder. And create an Animal class with get and set methods as an entity to our table. And using jpa to make crud in the AnimalHelper class.

6. JDBC & Hibernate 4. JPA & Hibernate

Задание 7

Создать новую базу данных с помощью MySQLWorkbench. Создать обычный java-проект и подключить к нему библиотеки JPA и Hibernate. Создать файл с настройками persistence.xml в папке META-INF. И создать класс Animal(int age, String name, boolean tail) с методами get и set, как сущность к нашей таблице. И с помощью jpa сделать crud в классе AnimalHelper.

About

Create a new database using MySQLWorkbench. Create a regular java project and connect the JPA and Hibernate libraries to it. Create a file with persistence.xml settings in the META-INF folder. And create an Animal class with get and set methods as an entity to our table. And using jpa to make crud in the AnimalHelper class.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages