January 2019
Beginner to intermediate
352 pages
8h
English
Vert.x doesn't have a module to use JPA specifications, so we will not create an entity.
Instead, we need to have an object that transfers the attributes of a football player from and to a database. For this reason, we create a data transfer object, named FootballPlayer, in order to do this:
package com.packtpub.vertx.footballplayermicroservice.model;import java.io.Serializable;import java.math.BigInteger;public class FootballPlayer implements Serializable { private static final long serialVersionUID = -92346781936044228L; private Integer id; private String name; private String surname; private int age; private String team; private String position; private BigInteger price; public FootballPlayer() { } public FootballPlayer ...
Read now
Unlock full access