【发布时间】: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