如何使用包含@EqualsAndHashCode - 龙目岛
如何使用 With ,龙目岛库 for Java.@EqualsAndHashCode
Include
@EqualsAndHashCode.Include( )
如何使Equals比较类ID?
例:
@EqualsAndHashCode.Include( )
@Table(name = "USER")
public class User
{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "IDENTITY_USER")
private Long identity;
}