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