Hi,
I have an Enum StatusType
[code]# public enum StatusType # { # PENDING, APPROVED # } [/code]
In my entity class i am mapping as
# @Enumerated(EnumType.STRING) # @Column(name ="status", nullable = false, length = 20) # public StatusType getStatus() { # return this.status; # } # # public void setStatus(StatusType status) { # this.status = status; # }
I have no problem saving the enum value but when i try to retrieve the entity i get status as null.
Can anyone point me where am i going wrong?
Thanks,
|