1 MySQL数据库
驱动:com.mysql.jdbc.Driver
连接:jdbc:mysql://localhost:3306/user
方言:org.hibernate.dialect.MySQLDialect
主键策略:@Id @GeneratedValue(generator="pk") @GenericGenerator(name="pk",strategy="increment")
2 SQLServer2008数据库
驱动:com.microsoft.sqlserver.jdbc.SQLServer
连接:jdbc:sqlserver://localhost:1433;DatabaseName=HelpDb
方言:
org.hibernate.dialect.SQLServer2008Dialect
主键策略:@Id @GeneratedValue(strategy=GenerationType.
identity)
3 Oracle数据库
驱动:oracle.jdbc.driver.OracleDriver
连接:jdbc:oracle:thin:@localhost:1521:orcl
方言:org.hibernate.dialect.Oracle10gDialect
主键策略:@Id @GeneratedValue(strategy=GenerationType.SEQUENCE)
方言集合:
点击打开链接
知道其他数据库 的朋友可以加