@Data
public class show{
@Transient
private boolean value;
}
show ob = new show();
ob.getValue() //throws an error
ob.isValue() //runs smoothly
Why is this happening? Instead of boolean, if I use Boolean, I am able to get variable's value. Why am I not able to fetch value if I use primitive datatypes?