use either Oracle9iDialect or Oracle10gDialect instead

10:30:16,909 WARN Oracle9Dialect:62 - HHH000063: The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead
10:30:16,914 WARN OracleDialect:48 - HHH000064: The OracleDialect dialect has been deprecated; use Oracle8iDialect instead


<bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<!-- 注入数据源 -->
<property name="dataSource" ref="dataSource" />
<!-- 设置Spring取那个包中查找相应的实体类 -->
<property name="packagesToScan">
<value>com.lj.basic.model</value>
</property>
<property name="hibernateProperties">
<!-- <value> hibernate.dialect=org.hibernate.dialect.HSQLDialect </value> -->
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
<prop key="hibernate.format_sql">false</prop>
</props>
</property>
</bean>


由于我使用的Oracle版本是11g, 这里必须使用Oracle10gDialect,

之前使用的是org.hibernate.dialect.OracleDialect, 结果就报了如上的错误。
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Hydra is a multi-cloud orchestration platform that provides a unified interface to manage resources and applications across different cloud providers. To use Hydra with Oracle Cloud, you need to follow the steps below: 1. Create an Oracle Cloud account and obtain the required credentials, including the tenancy ID, user ID, and API key. 2. Install the Hydra CLI tool on your local machine. 3. Authenticate Hydra with Oracle Cloud by running the following command: ``` hydra connect oracle --tenancy-id=<tenancy_id> --user-id=<user_id> --api-key=<api_key> ``` 4. Verify that the connection is successful by running the following command: ``` hydra status ``` 5. Create a Hydra environment file that defines the resources you want to manage in Oracle Cloud. The file should include the following information: - Provider: "oracle" - Region: The Oracle Cloud region where you want to deploy the resources - Compartment: The compartment ID where you want to deploy the resources - Resources: The resources you want to deploy, such as virtual machines, load balancers, or databases. 6. Deploy the resources by running the following command: ``` hydra apply -f <path_to_environment_file> ``` 7. Monitor and manage the deployed resources using the Hydra dashboard or CLI. Note that Hydra supports a wide range of cloud providers and services, including AWS, Azure, Google Cloud, and Kubernetes, among others. You can use Hydra to manage resources across multiple clouds and regions, and automate common tasks such as provisioning, scaling, and monitoring.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值