514 825-6031
What is JPA

The Java Persistence API (JPA) is a Java specification for accessing, persisting, and managing data between Java objects / classes and a relational database. JPA was defined as part of the EJB 3.0 specification as a replacement for the EJB 2 CMP Entity Beans specification.

JPA is a specification which specifies how to access, manage and persist information/data between java objects and relational databases. It provides a standard approach for ORM, Object Relational Mapping. Spring Boot provides a seemless integration with JPA.

Keyword
1 @OneToOne
Joins two tables by one to one
2 After
If d1 is After d2
3 And
The And condition as in Mysql
4 Before
If d1 is Before d2
5 Between
Get a result between two Dates
6 Containing
A value containing a specific string
7 Distinct
Select Distinct (unique) from the Database
8 EndingWith
A value ends with a specific string
9 Equals
If value 1 equals value 2
10 False
When a condition is false
11 GreaterThan
Compare if greater
12 GreaterThanEqual
Compare if equals or greater
13 IgnoreCase
Ignore Case
14 In
Find a specific value inside a collection
15 Is
Compares tow values
16 IsNotNull
If the value is not Null
17 IsNull
If the value is Null
18 LessThan
Compare if less
19 LessThanEqual
Compare if equals OR less
20 Like
Compare string pattern
21 Not
A value not equals a string
22 NotIn
Find a specific value which is not inside a collection
23 NotLike
If the value do not contain a string pattern
24 Or
The OR condition as in Mysql
25 OrderBy
Sort query
26 StartingWith
A value starts with a specific string
27 True
When a condition is true