79708550

Date: 2025-07-21 04:43:40
Score: 1
Natty:
Report link

I suggest you using an enum inside your entity

public enum IsPrimaryEnum  {
  Y, N
}

Change the entity field to:

@Enumerated(EnumType.STRING)
@Column(name = "is_primary")
private IsPrimaryEnum deviceIsPrimary = IsPrimaryEnum.N;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohammad Taghi Ahadi