January 2019
Beginner to intermediate
352 pages
8h
English
We need a domain model object to map the records inserted into our database. To do this, we will use the JPA specification; so, we will create an entity class for this purpose.
Let's create a new Java package to store the domain model object, and name it model. The fully qualified package name will be com.packtpub.springboot.footballplayermicroservice.model.
Next, we will build the domain class, named FootballPlayer:
...import java.io.Serializable;import java.math.BigInteger;import javax.persistence.Basic;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.NamedQueries;import javax.persistence.NamedQuery; ...
Read now
Unlock full access