当前位置:网站首页>hibernate 根据方言生成sql
hibernate 根据方言生成sql
2022-06-27 01:21:00 【顾人间讥诘】
hibernate 根据方言生成sql
建表语句生成
SchemaManagementToolCoordinator#performDatabaseAction
这个方法会做一些初始化动作,如启动时初始化表修改表
Table对象中有sqlCreateString方法,然而生成建表语句使用得是StandardTableExporter#getSqlCreateStrings
解析列属性
AnnotationBinder#processElementAnnotations
这个静态方法用于解析class类中得字段到Column对象
列类型
BasicTypeRegistry注册了java类型用于通过java类型获取sql类型,
并由具体dialect#getTypeName根据sql类型id获取sql类型string
方言选择
StandardDialectResolver#resolveDialect()
用于探测当前系统方言,其中入参是接口DialectResolutionInfo主要包含数据库名、主版本、小版本
边栏推荐
- 架构实战营模块五作业
- 建模规范:环境设置
- Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
- CEC-I 中华学习机使用说明与问答
- Memcached foundation 6
- XSS notes (Part 2)
- get_sequencer的用法总结
- Clip: learning transferable visual models from natural language monitoring
- Kept to implement redis autofailover (redisha) 14
- JVM 的指针压缩
猜你喜欢
清华&智源 | CogView2:更快更好的文本图像生成模型
Central Limit Theorem
getReader() has already been called for this request
Custom class loader encrypts and decrypts classes
USB协议中HID设备描述符以及键盘按键值对应编码表
如何把老式键盘转换成USB键盘并且自己编程?
Flink practical problems (VII): no watermark (watermarks are only available eventtime is used)
flutter系列之:flutter中的flow
XSS attack notes (Part 1)
使用NetworkX对社交网络进行系统的分析:Facebook网络分析案例
随机推荐
架构实战营模块五作业
Keepalived 实现 Redis AutoFailover (RedisHA)16
Summary of working at home during the epidemic | community essay solicitation
统一结果集的封装
3線spi屏幕驅動方式
IIS 部署静态网站和 FTP 服务
Account management, database building and four engines + cases of MySQL
buuctf-pwn write-ups (6)
Custom class loader encrypts and decrypts classes
UVM中config_db机制的使用方法
Continuous delivery blue ocean application
Esp32 add multi directory custom component
ESP32-添加多目录的自定义组件
getReader() has already been called for this request
Great vernacular with high concurrency (I)
Is it safe to open a securities account online? Is it reliable to speculate in stocks by mobile phone
大白话高并发(一)
TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
Keepalived 实现 Redis AutoFailover (RedisHA)11
对象的访问机制及其他