File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
loader/src/main/java/com/example/research/loader/domain Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .example .research .loader .domain ;
2+
3+ import org .springframework .data .mongodb .core .mapping .Document ;
4+
5+ import java .io .Serializable ;
6+ import java .time .LocalDateTime ;
7+
8+ import javax .validation .constraints .NotBlank ;
9+ import javax .validation .constraints .Size ;
10+
11+ import lombok .AllArgsConstructor ;
12+ import lombok .Data ;
13+ import lombok .NoArgsConstructor ;
14+
15+ @ Document
16+ @ Data
17+ @ NoArgsConstructor
18+ @ AllArgsConstructor
19+ public class Message implements Serializable {
20+ public String id ;
21+ @ NotBlank @ Size (max = 200 ) public String text ;
22+
23+ public String sendUserId ;
24+ public String providedMessageId ;
25+ public LocalDateTime timestamp ;
26+ public String extra ;
27+ }
Original file line number Diff line number Diff line change 1+ package com .example .research .loader .domain ;
2+
3+ import org .springframework .data .repository .reactive .ReactiveCrudRepository ;
4+
5+ public interface MessageRepository extends ReactiveCrudRepository <Message , String > {
6+
7+ }
You can’t perform that action at this time.
0 commit comments