Spigot Plugin Development - 86 - OrmLite (Object Relational Mapping)
In this video, I introduce you to a library called OrmLite which allows us to do Object Relational Mapping in Java so that the Minecraft plugins can interact with the database using objects rather than writing SQL code and directly using JDBC. #minecraft #coding
Code: https://github.com/Spigot-Plugin-Development-Tutorial/ormlite-sample
OrmLite: https://ormlite.com/
Maven Dependency: https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-jdbc
Join the Community! - https://discord.gg/cortexdev
Timestamps:
0:00 - Introduction
3:15 - Overview of the plugin
4:45 - Adding OrmLite
5:20 - Modeling our Table as a Class
9:19 - Connecting to the DB
11:05 - The Data Access Object
12:12 - Creating our CRUD methods
19:27 - Using the Points Service
23:20 - Testing the plugin
Want to Support the Channel?
- Become a Member: https://www.youtube.com/KodySimpson/join
- PayPal: https://www.paypal.com/paypalme/kodysimpson
My Socials:
Github: https://github.com/KodySimpson
Twitter: https://twitter.com/kodysimp
More Videos coming soon.
Leave a comment for any future video suggestions.