79756698

Date: 2025-09-05 10:55:01
Score: 1.5
Natty:
Report link

Workaround which I don't like but I have nothing else:

Declare it @JvmField and write getter setter manually which is very redundant and prone to errors if I ever rename anything.

@Enumerated(EnumType.STRING)
@Column(nullable = false)
@JvmField
var rStatus: WebsiteStatus = WebsiteStatus.INACTIVE
fun getRStatus(): WebsiteStatus = rStatus
fun setRStatus(value: WebsiteStatus) {
  rStatus = value
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @JvmField
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: judos