Skip to content

Commit

Permalink
Merge pull request #10 from byzaya/add-item-controllers
Browse files Browse the repository at this point in the history
Item controllers + services
  • Loading branch information
byzaya authored Nov 13, 2023
2 parents 4df8c34 + 47ce9be commit eb98b91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/example/entities/user/UserAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class UserAccount {
private Role role;

@ManyToOne
@JoinColumn(name = "speciality_id", nullable = false)
@JoinColumn(name = "speciality_id", nullable = true)
private Speciality speciality;

@OneToMany(mappedBy = "userAccount", cascade = CascadeType.ALL)
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ paths:
type: array
items:
$ref: '#/components/schemas/ItemDTO'
'400':
description: '{"code":"USER_NOT_DOC","status":400,"message":"USER_NOT_DOC"}'
'404':
description: '{"code":"USER_NOT_FOUND","status":404,"message":"USER_NOT_FOUND"}'

Expand Down Expand Up @@ -400,6 +402,8 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/SpecialityDTO'
'400':
description: '{"code":"USER_NOT_DOC","status":400,"message":"USER_NOT_DOC"}'
'404':
description: '{"code":"USER_NOT_FOUND","status":404,"message":"USER_NOT_FOUND"}'

Expand Down

0 comments on commit eb98b91

Please sign in to comment.