Commit d914d08f authored by João Lino's avatar João Lino

Just a basic model.

parent 374c59c5
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId> <groupId>com.joaolino</groupId>
<artifactId>demo-spring-microservice-profile</artifactId> <artifactId>demo-spring-microservice-profile</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
...@@ -103,18 +101,84 @@ ...@@ -103,18 +101,84 @@
<dependencies> <dependencies>
<!-- Spring Cloud Bootstrap -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<!-- Reactive -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
<exclusions>
<exclusion>
<artifactId>logback-classic</artifactId>
<groupId>ch.qos.logback</groupId>
</exclusion>
<exclusion>
<artifactId>logback-core</artifactId>
<groupId>ch.qos.logback</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
<scope>compile</scope>
</dependency>
<!-- Spring Boot Data -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
</dependency>
<!-- Spring Doc (for swagger) -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
</dependency>
<!-- Others --> <!-- Others -->
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<!-- development -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-tools</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-commons</artifactId>
<version>2.2.0.RELEASE</version>
</dependency>
</dependencies> </dependencies>
<!-- No common repositories should be defined in pom's. --> <!-- No common repositories should be defined in pom's. -->
<repositories /> <repositories />
<pluginRepositories /> <pluginRepositories />
<build> <build>
......
...@@ -27,10 +27,4 @@ public class AbstractAudit { ...@@ -27,10 +27,4 @@ public class AbstractAudit {
/** Id of the last user to modify the entry */ /** Id of the last user to modify the entry */
@LastModifiedBy private String lastModifiedBy; @LastModifiedBy private String lastModifiedBy;
/** FlowId which generated this entry */
private String flowId;
/** Session which generated this entry */
private String sessionId;
} }
package com.joaolino.demo.spring.microservice.profile.data.model; package com.joaolino.demo.spring.microservice.profile.data.model;
import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -14,7 +13,7 @@ import java.util.UUID; ...@@ -14,7 +13,7 @@ import java.util.UUID;
@Data @Data
@SuperBuilder @SuperBuilder
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor // @AllArgsConstructor
public class AbstractIdentification extends AbstractAudit { public class AbstractIdentification extends AbstractAudit {
/* A unique identifier of this model entity. */ /* A unique identifier of this model entity. */
......
...@@ -3,7 +3,6 @@ package com.joaolino.demo.spring.microservice.profile.data.model; ...@@ -3,7 +3,6 @@ package com.joaolino.demo.spring.microservice.profile.data.model;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Document;
...@@ -12,7 +11,7 @@ import org.springframework.data.mongodb.core.mapping.Document; ...@@ -12,7 +11,7 @@ import org.springframework.data.mongodb.core.mapping.Document;
@Data @Data
@SuperBuilder @SuperBuilder
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor // @NoArgsConstructor
@Document @Document
public class Profile extends AbstractIdentification { public class Profile extends AbstractIdentification {
......
#Generated by Git-Commit-Id-Plugin
#Mon Apr 27 13:03:17 BST 2020
git.branch=master
git.build.host=DESKTOP-97FFMN5
git.build.time=2020-04-27T13\:03\:17+0100
git.build.user.email=jl@joaolino.com
git.build.user.name=Jo\u00E3o Lino
git.build.version=1.0-SNAPSHOT
git.closest.tag.commit.count=
git.closest.tag.name=
git.commit.id=374c59c58879b3630a0949a3a2e9fa469bf3fa76
git.commit.id.describe=374c59c-dirty
git.commit.time=2020-04-27T11\:51\:41+0100
git.commit.user.email=jl@joaolino.com
git.dirty=true
git.remote.origin.url=https\://www.joaolino.com/gitlab/demo/demo-spring-microservice-profile.git
git.tags=
<?xml version="1.0" encoding="UTF-8"?>
<failsafe-summary xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/failsafe-summary.xsd" result="254" timeout="false">
<completed>0</completed>
<errors>0</errors>
<failures>0</failures>
<skipped>0</skipped>
<failureMessage xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</failsafe-summary>
\ No newline at end of file
artifactId=demo-spring-microservice-profile
groupId=com.joaolino
version=1.0-SNAPSHOT
com\joaolino\demo\spring\microservice\profile\data\model\AbstractIdentification.class
com\joaolino\demo\spring\microservice\profile\data\model\Profile.class
com\joaolino\demo\spring\microservice\profile\DemoSpringMicroserviceProfileInitializer.class
com\joaolino\demo\spring\microservice\profile\data\model\AbstractAudit$AbstractAuditBuilder.class
com\joaolino\demo\spring\microservice\profile\data\model\AbstractIdentification$AbstractIdentificationBuilder.class
com\joaolino\demo\spring\microservice\profile\data\model\AbstractIdentification$AbstractIdentificationBuilderImpl.class
com\joaolino\demo\spring\microservice\profile\data\model\Profile$ProfileBuilderImpl.class
com\joaolino\demo\spring\microservice\profile\data\model\AbstractAudit.class
com\joaolino\demo\spring\microservice\profile\data\model\AbstractAudit$AbstractAuditBuilderImpl.class
com\joaolino\demo\spring\microservice\profile\data\model\Profile$ProfileBuilder.class
com\joaolino\demo\spring\microservice\profile\DemoSpringMicroserviceProfileApplication.class
D:\Dev\demo\demo-spring-microservice-profile\src\main\java\com\joaolino\demo\spring\microservice\profile\data\model\AbstractAudit.java
D:\Dev\demo\demo-spring-microservice-profile\src\main\java\com\joaolino\demo\spring\microservice\profile\DemoSpringMicroserviceProfileInitializer.java
D:\Dev\demo\demo-spring-microservice-profile\src\main\java\com\joaolino\demo\spring\microservice\profile\data\model\Profile.java
D:\Dev\demo\demo-spring-microservice-profile\src\main\java\com\joaolino\demo\spring\microservice\profile\DemoSpringMicroserviceProfileApplication.java
D:\Dev\demo\demo-spring-microservice-profile\src\main\java\com\joaolino\demo\spring\microservice\profile\data\model\AbstractIdentification.java
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