From the course: Quarkus Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Adding Panache

Adding Panache

- [Instructor] So we have some working data access but if you're going to use an ORM, why not add a little bit more simplification to your project? And for in the Quarkus World we're going to leverage Panache to do just that. So the first thing that I want you to do is to open up the pom file and go to where we imported Quarkus hibernate ORM. And we're going to replace this with Quarkus hibernate ORM Panache. And we will bring that MVN Maven. Now that brings in hibernate so everything else stays the same. But now we can go to our source main Java data repository class and we're going to modify this. So what we are going to do is we are going to take our service repository and we are going to implement a Panache repository for service. Now there's a couple ways you can do this. You can do this as I'm doing now or you can actually put this in the live entity and create a Panache entity which gives you a live object. I…

Contents