chore: update
Java CI with Maven / test (pull_request) Successful in 9m24s
Java CI with Maven / build (pull_request) Successful in 35m8s

This commit is contained in:
TakahashiNg
2026-05-13 02:14:24 +00:00
parent 6d4bf3e095
commit 76379f10fd
2 changed files with 5 additions and 0 deletions
@@ -2,6 +2,8 @@ package com.drinkool.entities;
import com.drinkool.Role; import com.drinkool.Role;
import com.drinkool.models.UserModel; import com.drinkool.models.UserModel;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.*; import jakarta.persistence.*;
import jakarta.transaction.Transactional; import jakarta.transaction.Transactional;
import java.util.ArrayList; import java.util.ArrayList;
@@ -11,6 +13,7 @@ import java.util.List;
@Table(name = Role.Manager) @Table(name = Role.Manager)
public class ManagerEntity extends UserModel { public class ManagerEntity extends UserModel {
@JsonIgnore
@OneToMany( @OneToMany(
mappedBy = "serve", mappedBy = "serve",
cascade = CascadeType.ALL, cascade = CascadeType.ALL,
@@ -18,6 +21,7 @@ public class ManagerEntity extends UserModel {
) )
public List<StaffEntity> staffs = new ArrayList<>(); public List<StaffEntity> staffs = new ArrayList<>();
@JsonIgnore
@Column(nullable = true) @Column(nullable = true)
public String bankAccount; public String bankAccount;
@@ -66,6 +66,7 @@ public class ManagerService extends BaseService<ManagerEntity> {
.build(); .build();
return Response.accepted() return Response.accepted()
.entity(manager)
.header(InternalValue.userId, manager.id.toString()) .header(InternalValue.userId, manager.id.toString())
.header(InternalValue.role, Role.Manager) .header(InternalValue.role, Role.Manager)
.build(); .build();