Skip to content

Commit d48f0f5

Browse files
committed
## 2.3.31
* fixed #311 User Selfservice is broken * Issue #312 User2UserMessage Chat is broken
1 parent abe6e8d commit d48f0f5

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/main/java/org/woehlke/simpleworklist/application/common/AuditModel.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package org.woehlke.simpleworklist.application.common;
22

33
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4+
import lombok.EqualsAndHashCode;
5+
import lombok.Getter;
6+
import lombok.Setter;
7+
import lombok.ToString;
48
import org.springframework.data.annotation.CreatedDate;
59
import org.springframework.data.annotation.LastModifiedDate;
610
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
@@ -16,6 +20,10 @@
1620
value = {"rowCreatedAt", "rowUpdatedAt"},
1721
allowGetters = true
1822
)
23+
@ToString
24+
@Getter
25+
@Setter
26+
@EqualsAndHashCode(callSuper=false)
1927
public class AuditModel implements Serializable {
2028

2129
private static final long serialVersionUID = 4399373914714726911L;
@@ -33,6 +41,7 @@ public class AuditModel implements Serializable {
3341
@Column(name = "row_updated_at", nullable = false)
3442
protected Date rowUpdatedAt;
3543

44+
/*
3645
public String getUuid() {
3746
return uuid;
3847
}
@@ -56,7 +65,9 @@ public Date getRowUpdatedAt() {
5665
public void setRowUpdatedAt(Date rowUpdatedAt) {
5766
this.rowUpdatedAt = rowUpdatedAt;
5867
}
68+
*/
5969

70+
/*
6071
@Override
6172
public boolean equals(Object o) {
6273
if (this == o) return true;
@@ -71,6 +82,7 @@ public boolean equals(Object o) {
7182
public int hashCode() {
7283
return Objects.hash(getUuid(), getRowCreatedAt(), getRowUpdatedAt());
7384
}
85+
*/
7486

7587
@Override
7688
public String toString() {

src/main/java/org/woehlke/simpleworklist/user/chat/User2UserMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
@Getter
3232
@Setter
3333
@EqualsAndHashCode
34-
@ToString
34+
@ToString(callSuper=true)
3535
@NoArgsConstructor
3636
@AllArgsConstructor
3737
public class User2UserMessage extends AuditModel implements Serializable {

src/main/java/org/woehlke/simpleworklist/user/chat/User2UserMessageController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
*/
2929
@Slf4j
3030
@Controller
31-
@RequestMapping(path = "/user/messages/")
31+
@RequestMapping(path = "/user2user")
3232
public class User2UserMessageController extends AbstractController {
3333

34-
@RequestMapping(path = "/{userId}/", method = RequestMethod.GET)
34+
@RequestMapping(path = "/{userId}/messages", method = RequestMethod.GET)
3535
public final String getLastMessagesBetweenCurrentAndOtherUser(
3636
@PathVariable("userId") UserAccount otherUser,
3737
@PageableDefault(sort = "rowCreatedAt", direction = Sort.Direction.DESC) Pageable request,

0 commit comments

Comments
 (0)