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

reinit

parent 1086928e
...@@ -7,11 +7,12 @@ import lombok.Data; ...@@ -7,11 +7,12 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.persistence.*; import javax.persistence.*;
import javax.validation.constraints.Size;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@Entity @Entity
@Table(name ="employee") @Table(name = "employee")
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
...@@ -27,6 +28,9 @@ public class Employee { ...@@ -27,6 +28,9 @@ public class Employee {
@Column(name = "password", length = 128, nullable = false) @Column(name = "password", length = 128, nullable = false)
private String password; private String password;
@Column(name = "confirm_password")
@Size(min = 5, max = 20)
private String confirmPassword;
@Column(name = "first_name", length = 50) @Column(name = "first_name", length = 50)
private String firstName; private String firstName;
......
package com.itsol.quantrivanphong.report.employee;
public class Employee {
}
...@@ -3,9 +3,9 @@ server.port=8081 ...@@ -3,9 +3,9 @@ server.port=8081
# DATABASE CONNECTION # DATABASE CONNECTION
# =============================== # ===============================
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 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.username=root
spring.datasource.password= spring.datasource.password= 123456
# =============================== # ===============================
# JPA / HIBERNATE # 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