JPA EclipseLink entities not refreshing
问题 I have a problem with entities not being refreshed when values in the database are changed from outside the JPA session. For instance, I have a user entity: @Entity @Cacheable(false) public class UserBean implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @OneToMany(mappedBy = "receiver") @JoinTable(name = "NOTIFICATIONS_RECEIVED") private List<NotificationBean> notificationsReceived; ... } And notifications entity: @Entity @Cacheable(false) public