当前位置:网站首页>jpa连接数据库password字段BLOB
jpa连接数据库password字段BLOB
2022-07-27 15:56:00 【扮作大侠】
问题描述:
数据库密码字段设置为不可见,jpa接收
mysql数据库
password BLOB,
实体类
/*
MySQL支持大量的列类型,它可以被分为3类:数字类型、日期和时间类型以及字符串(字符)类型。Mysql针对字符类型大对象存储的解决方案是Lob对象。
@Lob 注解属性将被持久化为 Blog 或 Clob 类型
Clob(Character Large Ojects)类型是长字符串类型,具体的java.sql.Clob, Character[], char[] 和 java.lang.String 将被持久化为 Clob 类型。
Blob(Binary Large Objects)类型是字节类型,具体的java.sql.Blob, Byte[], byte[] 和 serializable type 将被持久化为 Blob 类型。
@Lob 持久化为Blob或者Clob类型,根据get方法的返回值不同,自动进行Clob和Blob的转换。
因为这两种类型的数据一般占用的内存空间比较大,所以通常使用延迟加载的方式,与@Basic标记同时使用,设置加载方式为FetchType.LAZY。
原文链接:https://blog.csdn.net/weixin_42926060/article/details/85016746
*/
@Lob
@Basic(fetch = FetchType.LAZY)
@Column(name = "password",columnDefinition = "BLOB",nullable = true)
private String password;
边栏推荐
- 微信小程序 云函数批量删除多条数据 Error: errCode: -502005 database collection not exists
- Application of knowing things and learning | correlation graph analysis in anti cheating business
- 笔试缺考者入围教师招聘面试?河南祥符:个别考生成绩统计错误
- JDBC connection database reading foreground cannot display data
- 知物由学 | 从0到1搭建实时反外挂机制,多维度补充手游攻防力
- Dbeaver connection MySQL error: the server time zone value 'Ö Ð¹ ú±ê ×¼ ʱ ¼ ä‘ is unrecognized or represents more than
- hutool- 数字计算
- JSP custom tag (bottom)
- How to develop an online Excel spreadsheet system (Part 1)
- golang 等待一组goroutine完成,并带返回值(2)
猜你喜欢

vim的配置及基础使用

Oracle 11g数据库安装教程

知物由学 | 易盾自研文本实时聚类技术,一网打尽社交网络中的同类有害内容

Notes on standardized management of "ancestral warehouse" of meituan meal

2022 high altitude installation, maintenance and removal of test question simulation test platform operation

使用分布式框架WCF出现的BUG记录

Mlx90640 infrared thermal imager temperature sensor module development notes (VII)

Convolutional neural network -- SSD thesis translation

JS to realize the right-click menu bar function

Evaluation index of machine learning (I) -- regression evaluation index
随机推荐
Knowledge dry goods: basic storage service novice Experience Camp
From digitalization to intelligent operation and maintenance: what are the values and challenges?
js实现右键菜单栏功能
mysql解决唯一索引重复导致的插入失败问题
Wechat applet realizes location map display and introduces map map without navigation
【cf】#681 A. Kids Seating (Div. 2, based on VK Cup 2019-2020 - Final)
Layout of flutter
Salesforce File Share and Security
卷积神经网络——从R-CNN,Fast R-CNN到Faster R-CNN,Mask R-CNN
用slmgr命令激活正版Win7旗舰版系统
Personal understanding of convolution calculation process of convolution neural network
Yyds dry inventory interview must brush top101: specified interval reversal in the linked list
机器学习之评价指标(一)——回归评价指标
PostgreSQL 14 支持winserver2022吗?
I got the P8 "top-level" distributed architecture manual crazy spread on Alibaba intranet
Original direct selling MOS tube knl42150 2.8a/1500v applicable photovoltaic inverter can provide samples
Configuration and basic use of vim
Fast parsing combined with Huatu document encryption software
灵魂一问:为什么ES比MySQL更适合复杂条件搜索?
Interviewer: what is scaffolding? Why do you need scaffolding? What are the commonly used scaffolds?