356 views
We continue developing a console mini-RPG where Gandalf fights Aragorn! In this video, I add the functionality of loading player data from the database 📚 What you will learn: Loading data from a MySQL database via Hibernate. Implementing a method for working with different player types. Using Docker to quickly start a database. Working with Hibernate to read and write data. 🔍 What you will see: Adding and deleting columns in database tables. An example of reading data from the console using Scanner. Starting threads (Thread) for a turn-based game. 🎯 Key points: How to create and modify tables in MySQL to store character data. Practical use of SQL and Hibernate in Java. Integrating Java with a database via EntityManager. 🔥 Source code: GitHub Repository Suitable for beginner developers who want to master databases and Hibernate!