I have tried @transient on basic Java type like String
or Int
, it works ok.
But when i try @transient on field with Java Class type having getter/setter , it return error.
@Transient
private Office office;
public Office getOffice(){...}
This will return "type can't be null" exception.