![]() ![]() A window will popup that I’ll use to search for my HyperSQL dependency by entering hsqldb in my search window. In my pom.xml file, I’ll add my HyperSQL dependency by pressing Alt+ Insert for Windows/Linux or ⌘N for macOS. In this tutorial, I’ll use a light-weight database called HyperSQL. In addition to these dependencies, our application will also need the dependencies for the database where we’ll be persisting our data. You’ll notice that IntelliJ IDEA generated some dependencies needed for our application based on the frameworks selected when we created our project. In our new project, let’s open our generated pom.xml file. IntelliJ IDEA will create the project and generate some files for us. In the next window, I will set the project name to JPA-App and change the group to my company name, com.jetbrains. I want to create a JPA application that uses Hibernate so under Implementations, I will select Hibernate. In the next window, we’ll select the libraries required by my application. I won’t be using any application servers for my persistence application so I will not configure the application server field. ![]() Then, I’ll select Library for my template. In this tutorial, I’ll use the latest Long Term Supported (LTS) Java version which is Java 11. We’ll select Java Enterprise from the left menu which allows us to take advantage of the enterprise framework support provided in IntelliJ IDEA Ultimate. ![]() Creating a new JPA Projectįirst, we’ll create a new project in IntelliJ IDEA Ultimate by clicking on the New Project button in the Welcome screen. If you want to create a Jakarta Persistence application with the new jakarta namespace, checkout this version of the blog or watch this video. JPA allow you to store, access and manage Java objects in a relational database. In this blog, we’re going to look at how to create a simple JPA application in IntelliJ IDEA Ultimate.
0 Comments
Leave a Reply. |