Commit 0bbada35 authored by đinh thị đầm's avatar đinh thị đầm

reinit

parent 1086928e
......@@ -7,11 +7,12 @@ import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name ="employee")
@Table(name = "employee")
@Data
@NoArgsConstructor
@AllArgsConstructor
......@@ -27,6 +28,9 @@ public class Employee {
@Column(name = "password", length = 128, nullable = false)
private String password;
@Column(name = "confirm_password")
@Size(min = 5, max = 20)
private String confirmPassword;
@Column(name = "first_name", length = 50)
private String firstName;
......
package com.itsol.quantrivanphong.report.employee;
public class Employee {
}
......@@ -3,9 +3,9 @@ server.port=8081
# DATABASE CONNECTION
# ===============================
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/quantrivanphong
spring.datasource.url=jdbc:mysql://localhost:3308/quantrivanphong
spring.datasource.username=root
spring.datasource.password=
spring.datasource.password= 123456
# ===============================
# JPA / HIBERNATE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment