熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Java開源技術 >> 正文

Hibernate對各數據庫的連接方言

2022-06-13   來源: Java開源技術 

<sessionfactory>
 <property name=connectiondriver_class>netsourceforgejtdsjdbcDriver</property>
 <property name=connectionurl>jdbc:jtds:sqlserver://ALEX:/News</property>
 <!for oracle
 <property name=dialect>orghibernatedialectOracleDialect</property>
 >
 <!for Mysql
 <property name=dialect>orghibernatedialectMySQLDialect</property>
 >
 <!for Ms SQL Server>
 <property name=dialect>orghibernatedialectSQLServerDialect</property>
 <property name=connectionusername>sa</property>
 <property name=connectionpassword>sa</property>
 <property name=show_sql>true</property>
</sessionfactory>
 
RDBMS  方言 
DB  orghibernatedialectDBDialect 
DB AS/  orghibernatedialectDBDialect 
DB OS  orghibernatedialectDBDialect 
PostgreSQL  orghibernatedialectPostgreSQLDialect 
MySQL  orghibernatedialectMySQLDialect 
MySQL with InnoDB  orghibernatedialectMySQLInnoDBDialect 
MySQL with MyISAM  orghibernatedialectMySQLMyISAMDialect 
Oracle (any version)  orghibernatedialectOracleDialect 
Oracle i/g  orghibernatedialectOracleDialect 
Sybase  orghibernatedialectSybaseDialect 
Sybase Anywhere  orghibernatedialectSybaseAnywhereDialect 
Microsoft SQL Server  orghibernatedialectSQLServerDialect 
SAP DB  orghibernatedialectSAPDBDialect 
Informix  orghibernatedialectInformixDialect 
HypersonicSQL  orghibernatedialectHSQLDialect 
Ingres  orghibernatedialectIngresDialect 
Progress  orghibernatedialectProgressDialect 
Mckoi SQL  orghibernatedialectMckoiDialect 
Interbase  orghibernatedialectInterbaseDialect 
Pointbase  orghibernatedialectPointbaseDialect 
FrontBase  orghibernatedialectFrontbaseDialect 
Firebird  orghibernatedialectFirebirdDialect
From:http://tw.wingwit.com/Article/program/Java/ky/201311/27952.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.