Skip to content

Latest commit

 

History

History
70 lines (57 loc) · 1.97 KB

DM-README.md

File metadata and controls

70 lines (57 loc) · 1.97 KB

达梦数据库支持

1、下载相关jar包

  • byte-buddy-1.14.5.jar
  • DmDialect-for-hibernate6.1.jar
  • DmJdbcDriver18-8.1.2.192.jar
  • hibernate-commons-annotations-6.0.6.Final.jar
  • hibernate-core-6.2.5.Final.jar
  • jakarta.inject-api-2.0.1.jar
  • jakarta.transaction-api-2.0.1.jar

2、修改application.yml

bigtop:
  manager:
    orm:
      # hibernate/eclipselink(default=eclipselink)
      type: hibernate

spring:
  datasource:
    driver-class-name: dm.jdbc.driver.DmDriver
    username: SYSDBA
    password: SYSDBA
    url: jdbc:dm://localhost:5236?schema=bigtop_manager&compatibleMode=mysql&ignoreCase=true&characterEncoding=PG_UTF8

  jpa:
    show-sql: true
    hibernate:
      ddl-auto: none
    properties:
      hibernate:
        show_sql: true
        format_sql: true
        dialect: org.hibernate.dialect.DmDialect

4、初始化DDL

bigtop-manager-server/src/main/resources/ddl/DaMeng-DDL-CREATE.sql

4、启动程序

./bin/start.sh

参考