SQL is select 1 from DUAL;not a good health check, the only thing you see is the server response, which does not mean that the data itself is healthy. But if you want to ask such a question, just create your own data object that mimics DUAL, and you control the object, and you will remain common to any DBMS.
Sort of
@Entity
@Table(name="myDual")
public class MyDual implements Serializable {
@Id
@Column(name = "id")
Integer id;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
}
CacheMode.IGNORE CacheMode.REFRESH . , ...