【问题标题】:Why intelliJ creates table for synonyms in other schema?为什么 intelliJ 为其他模式中的同义词创建表?
【发布时间】:2021-12-20 00:06:58
【问题描述】:

我有问题。当我想通过 intelliJ 更新我在 oracle 数据库中的表时,它会在我的域文件夹中创建表。 没关系,但它创建了在域文件夹中定义的同义词。当我重试删除为同义词创建的表时,由于外键而出错。我该怎么办?

我在配置文件中使用以下代码:

jdbc.driverClassName1=oracle.jdbc.driver.OracleDriver
jdbc.url1=jdbc:oracle:thin:@simple:simple
jdbc.username1=username1
jdbc.password1=password1
init-db=false

jdbc.driverClassName2=oracle.jdbc.driver.OracleDriver
jdbc.url2=jdbc:jdbc:oracle:thin:@simlpe:simple
jdbc.username2=username2
jdbc.password2=password2
################### Hibernate Configuration ##########################
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
hibernate.hbm2ddl.auto=update
hibernate.connection.provider_class=org.hibernate.connection.C3P0ConnectionProvider
hibernate.c3p0.acquire_increment=1
hibernate.c3p0.idle_test_period=300
hibernate.c3p0.timeout=999999
hibernate.synonyms=true
hibernate.c3p0.max_size=5
hibernate.c3p0.min_size=2
hibernate.c3p0.max_statements=0
hibernate.c3p0.preferredTestQuery=select 1
hibernate.c3p0.testConnectionOnCheckout=true
hibernate.connection.autocommit=true
hibernate.connection.useUnicode=true
hibernate.connection.characterEncoding=UTF-8
default.keyDS=TRAIN
log.server.url=/BAS/eventLog/

【问题讨论】:

  • 您收到的错误是什么?
  • 没什么!我找到了解决方案。发生此错误是因为我们定义的同义词未映射到实际类。

标签: java html oracle intellij-idea synonym


【解决方案1】:

我找到了解决方案。发生此错误是因为我们定义的同义词未映射到实际类。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-29
    • 2015-03-08
    • 1970-01-01
    • 2021-06-23
    相关资源
    最近更新 更多