【问题标题】:all_sequences table/relation not found?all_sequences 表/关系未找到?
【发布时间】:2017-04-29 02:31:39
【问题描述】:

我无法查询数据库中的“all_sequences”表。

我是否需要向所有者/用户 ID 授予任何授权才能解决此问题?

由于这个问题,在服务器启动期间,我从 hibernate.hbm2ddl.auto validate 中收到以下错误:

ERROR o.h.tool.hbm2ddl.SchemaValidator - HHH000300: Could not complete schema validation
org.postgresql.util.PSQLException: ERROR: relation "all_sequences" does not exist

【问题讨论】:

  • 您在Postgres manual 的哪个位置找到all_sequences
  • @a_horse_with_no_name:我是 postgres 的新手。我认为 all_sequences 表将默认可用。对吗?
  • 不,这是特定于 Oracle 的视图,它不是 SQL 标准的一部分 - 如果有疑问,您应该查阅手册,所有系统表和视图都记录在那里:postgresql.org/docs/current/static/catalogs.html

标签: postgresql hibernate hbm2ddl


【解决方案1】:

您应该使用以下属性更新您的 hibernate.cfg.xml:

<property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-07-19
    • 1970-01-01
    • 2015-07-25
    • 2020-03-05
    • 1970-01-01
    • 2015-05-20
    • 2014-12-05
    相关资源
    最近更新 更多