当前位置:网站首页>JPA connection database password field blob
JPA connection database password field blob
2022-07-27 18:35:00 【Pretend to be a great Xia】
Problem description :
The database password field is set to invisible ,jpa receive
mysql database
password BLOB,
Entity class
/*
MySQL Supports a large number of column types , It can be divided into 3 class : Numeric type 、 Date and time types and strings ( character ) type .Mysql The solution for character type large object storage is Lob object .
@Lob Annotation properties will be persisted as Blog or Clob type
Clob(Character Large Ojects) Type is a long string type , Concrete java.sql.Clob, Character[], char[] and java.lang.String Will be persisted Clob type .
Blob(Binary Large Objects) Type is byte type , Concrete java.sql.Blob, Byte[], byte[] and serializable type Will be persisted Blob type .
@Lob Persist to Blob perhaps Clob type , according to get Method returns different values , Automatically Clob and Blob Transformation .
Because these two types of data generally occupy a large memory space , So we usually use the method of delayed loading , And @Basic Marks are used at the same time , Set the loading method to FetchType.LAZY.
Link to the original text :https://blog.csdn.net/weixin_42926060/article/details/85016746
*/
@Lob
@Basic(fetch = FetchType.LAZY)
@Column(name = "password",columnDefinition = "BLOB",nullable = true)
private String password;
边栏推荐
- 2. Change color space and color detection
- Publish your own NPM component library
- 2021.8.1 Notes database design
- [MIT 6.S081] Lab 10: mmap
- multi-table query
- 2021.7.31笔记 视图
- 2021.8.1笔记 DBA
- 深度学习:GCN图分类案例
- 3. Opencv geometric transformation
- Linked list storage structure of dynamic linked list 2 stack (linkedstack Implementation)
猜你喜欢

Deep recognition: thesis reading_ 2s-agcn cvpr2019 (two stream adaptive graph convolution network based on skeleton action recognition)

MySQL学习 Day3 多表查询 / 事务 / DCL

2021.8.7笔记 servlet

2021.8.1笔记 DBA
![[MIT 6.S081] Lec 8: Page faults 笔记](/img/e2/0f5332dd9d2b439bcf29e87a9fa27f.png)
[MIT 6.S081] Lec 8: Page faults 笔记

深度学习:STGCN学习笔记
![[MIT 6.S081] Lab 4: traps](/img/8b/ca4819f8b1cfc6233745a124790674.png)
[MIT 6.S081] Lab 4: traps

2021.7.30 note index

MySQL learning Day1 DDL, DML, DQL basic query

数据库的常用命令1
随机推荐
一个案例理解mysql视图
Linked list storage structure of dynamic linked list 2 stack (linkedstack Implementation)
Deep learning: stgcn learning notes
2021.7.30 note index
Deep learning - paper reading: action structural graph convolution network as-gcn
微信小程序获取手机号
深度学习:GCN(图卷积神经网络)理论学习总结
记一次 .NET 某智慧物流 WCS系统 CPU 爆高分析
知识图谱 — pyhanlp实现命名体识别(附命名体识别代码)
Binary tree concept
"Who is Huawei" documentary film series landing on BBC: exposing a large number of Ren Zhengfei's unknown experience
2021.7.12 internal and external connection of notes
After being "expelled" from bitland, the Jank group said for the first time: it will return as soon as possible through legal channels!
2021.8.1 Notes database design
Common commands of database 1
[MIT 6.S081] Lab 9: file system
[MIT 6.S081] Lab 11: networking
[MIT 6.S081] Lec 3: OS organization and system calls 笔记
MySQL学习 Day3 多表查询 / 事务 / DCL
微信小程序微信支付概述