Skip to content

Commit

Permalink
@DaTa annotation removed due to the undesired effects
Browse files Browse the repository at this point in the history
of the auto-generated equals when we have bidirectional relationships.
  • Loading branch information
japarejo committed Dec 21, 2020
1 parent 232c9e5 commit e42f27b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
import javax.validation.constraints.Size;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Data
@Getter
@Setter
@Entity
@Table(name = "authorities")
public class Authorities extends BaseEntity{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
import javax.persistence.OneToMany;
import javax.persistence.Table;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Data
@Getter
@Setter
@Entity
@Table(name = "users")
public class User{
Expand Down

0 comments on commit e42f27b

Please sign in to comment.