Skip to content

Commit

Permalink
refactor: 체중 엔티티 필드값 타입 변경 #8
Browse files Browse the repository at this point in the history
primitive -> wrapper
  • Loading branch information
shimbaa committed Sep 18, 2024
1 parent eccc344 commit b41587b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ public class Weight {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
long id;
Long id;

long petId;
Long petId;

LocalDateTime recordedAt;

double weight;
Double weight;

String description;

public Weight(long petId, LocalDateTime recordedAt, double weight, String description) {
public Weight(Long petId, LocalDateTime recordedAt, Double weight, String description) {
this.petId = petId;
this.recordedAt = recordedAt;
this.weight = weight;
Expand Down

0 comments on commit b41587b

Please sign in to comment.