added angular pact example

This commit is contained in:
Tom Hombergs
2017-11-06 23:16:47 +01:00
parent b93c05fbe5
commit f10c8d2bfc
18 changed files with 522 additions and 9245 deletions

View File

@@ -0,0 +1,47 @@
package com.example.demo;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
@Entity
public class User {
@Id
@GeneratedValue
private Long id;
@Column
@NotNull
private String firstName;
@Column
@NotNull
private String lastName;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
}