Skip to content

Commit

Permalink
Make cat call super on equals and hash code
Browse files Browse the repository at this point in the history
  • Loading branch information
PauMAVA committed Feb 20, 2024
1 parent e75bce0 commit 0ae6cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cat/udl/eps/softarch/demo/domain/Cat.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class Cat extends Pet {
Expand Down

0 comments on commit 0ae6cf4

Please sign in to comment.