So I have learned that the transient
keyword in Java means that an entity does not persist, and that the @Transient
annotation in JPA means don't persist a field to the database. But what does it mean when @Transient
is applied to a method rather than a variable?
This is where I found it in our code:
@Transient
public boolean getTabFoo() {
if ((this.viewFoo1 != ACCESS_NONE)
|| (this.viewFoo2 != ACCESS_NONE) || (this.viewFoo3 != ACCESS_NONE)
|| (this.getViewFoo4() != ACCESS_NONE)) {
return true;
}
return false;
}