随笔-179  评论-666  文章-29  trackbacks-0



  org.hibernate.dialect.mysqldialect
  com.mysql.jdbc.driver

  
  jdbc:mysql://localhost/dbname?characterencoding=gb2312

  
  root

  
  root
  
  
  
  org.hibernate.dialect.sqlserverdialect
  net.sourceforge.jtds.jdbc.driver

  
  jdbc:jtds:sqlserver://localhost:1433;databasename=dbname

  
  sa

  
  

  
  
  
  org.hibernate.dialect.oracledialect
  oracle.jdbc.driver.oracledriver

  
  jdbc:oracle:thin:@localhost:1521:dbname

  
  test

  
  test



如果出现如下错误,则可能是hibernate sql方言 (hibernate.dialect)设置不正确。
caused by: java.sql.sqlexception: [microsoft][sqlserver 2000 driver for jdbc][sqlserver]'last_insert_id' 不是可以识别的 函数名。
rdbms 方言
db2 org.hibernate.dialect.db2dialect
db2 as/400 org.hibernate.dialect.db2400dialect
db2 os390 org.hibernate.dialect.db2390dialect
postgresql org.hibernate.dialect.postgresqldialect
mysql org.hibernate.dialect.mysqldialect
mysql with innodb org.hibernate.dialect.mysqlinnodbdialect
mysql with myisam org.hibernate.dialect.mysqlmyisamdialect
oracle (any version) org.hibernate.dialect.oracledialect
oracle 9i/10g org.hibernate.dialect.oracle9dialect
sybase org.hibernate.dialect.sybasedialect
sybase anywhere org.hibernate.dialect.sybaseanywheredialect
microsoft sql server org.hibernate.dialect.sqlserverdialect
sap db org.hibernate.dialect.sapdbdialect
informix org.hibernate.dialect.informixdialect
hypersonicsql org.hibernate.dialect.hsqldialect
ingres org.hibernate.dialect.ingresdialect
progress org.hibernate.dialect.progressdialect
mckoi sql org.hibernate.dialect.mckoidialect
interbase org.hibernate.dialect.interbasedialect
pointbase org.hibernate.dialect.pointbasedialect
frontbase org.hibernate.dialect.frontbasedialect
firebird org.hibernate.dialect.firebirddialect


posted on 2008-04-15 14:06 alpha 阅读(50131) 评论(0)     所属分类: hibernate

只有注册用户后才能发表评论。


网站导航:
              
 
网站地图