実装したい、クエリタイムアウト。アプリケーションフレームワークは、SpringMVCとhibernateで構成されています。
セッションファクトリでタイムアウトを指定している場合。エラーが発生しますタイムアウトはPostgresqlドライバーに実装されていません。
私はpostgres8.4を使用しています
コードは次のとおりです。
@Override
@Transactional(timeout=20)
public List<MasterBooking> searchMasterBookings(---){//some more code}
エラースタックトレースは次のとおりです。
SQL state [0A000]; error code [0];Method org.postgresql.jdbc4.Jdbc4PreparedStatement.setQueryTimeout(int) is not yet implemented.; nested exception is org.postgresql.util.PSQLException: Method org.postgresql.jdbc4.Jdbc4PreparedStatement.setQueryTimeout(int) is not yet implemented.
どうすればこれを実装できますか?