We are moving from Payara 4 to 5 and it seems the @Transient annotation is not working as expected. We get the below MyDTO
from a resultset, make some calculations and set myField
. Somehow EclipseLink
tries to updated the myField
when the transaction closes eventhough it has the @Transient
annotation.
import javax.persistence.*;
@Entity
public class MyDTO implements Serializable, MyInterface {
@Id
...
private MyField myField;
@Transient
public MyField getMyField() {
return myField;
}
@Override
public void setMyField(final MyField myField) {
this.myField = myField;
}
...
}
This is the error that get:
Caused by: org.postgresql.util.PSQLException: ERROR: relation "mydto" does not exist