From the course: Java Persistence API (JPA): 1 The Basics
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Managing transactions demo - Java Tutorial
From the course: Java Persistence API (JPA): 1 The Basics
Managing transactions demo
- [Instructor] Open IntelliJ and go to the begin files for chapter three video two. So, in this demo we are introducing the concept of a ticket. So, a ticket is a bug fix or enhancement request for an existing application. So let's look at our ticket entity. So, it has an id, a title, and description, and the necessary getters, and setters, and constructors. So, let's also look at a release. So tickets can be a part of a release. So in this case, a release has an id, a release date, description. So let's look more closely at what we can do with a ticket. So let's go to our TrackzillaController and it's under the controller folder. So, specifically for a ticket, we can get the ticket by id. We can get all tickets as seen on line 67. We can add a ticket on line 73. Update a ticket on line 81. Delete a ticket on line 87. And we can close a ticket. So now, let's look at our ticket service. That is under the service folder. Double-click on TicketService. And we see all of the methods that…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.