hibernate could not get next sequence value

后端 未结 11 1441
夕颜
夕颜 2020-11-29 23:32

i have gwt application connect to postgres DB at the backend, and a java class \'Judgement\' mapping the table \'judgements\' in DB, when i tried to persistent a judgement i

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 00:07

    The Database that we are using should be mentioned under search_path in Postgres SQL Configuration file. This can be done by editing Postgressql configuration file by setting search_path along with database name for example: TESTDB.

    1. Find postgressql.conf file under data folder of Postgres SQL datbase.
    2. Set search_path = "$user", public, TESTDB;
    3. Restart the Postgres SQL service to affect the change.

    It worked for me after making the above change.

提交回复
热议问题