add user entity
This commit is contained in:
parent
fa387f6f40
commit
b1d289972a
9 changed files with 35 additions and 0 deletions
Binary file not shown.
BIN
hd-commons-lib/target/hd-commons-lib-1.0.0.jar
Normal file
BIN
hd-commons-lib/target/hd-commons-lib-1.0.0.jar
Normal file
Binary file not shown.
3
hd-commons-lib/target/maven-archiver/pom.properties
Normal file
3
hd-commons-lib/target/maven-archiver/pom.properties
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
artifactId=hd-commons-lib
|
||||||
|
groupId=br.com.rayan
|
||||||
|
version=1.0.0
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
main/java/models/enums/ProfileEnum.class
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
/home/dev/projetos/Help Desk 2.0/hd-commons-lib/src/main/java/models.enums/ProfileEnum.java
|
||||||
|
|
@ -8,6 +8,8 @@ repositories {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
|
implementation 'br.com.rayan:hd-commons-lib:1.0.0'
|
||||||
|
|
||||||
// Starter para desenvolvimento de aplicativos web com Spring Boot
|
// Starter para desenvolvimento de aplicativos web com Spring Boot
|
||||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package br.com.rayankonecny.userserviceapi.entity;
|
||||||
|
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
import org.springframework.data.annotation.Id;
|
||||||
|
import org.springframework.data.mongodb.core.mapping.Document;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.With;
|
||||||
|
import main.java.models.enums.ProfileEnum;
|
||||||
|
|
||||||
|
@With
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@Document
|
||||||
|
public class User {
|
||||||
|
|
||||||
|
@Id
|
||||||
|
private String id;
|
||||||
|
private String name;
|
||||||
|
private String email;
|
||||||
|
private String password;
|
||||||
|
private Set<ProfileEnum> profiles;
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue