![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring data jpa
qq_30024063
这个作者很懒,什么都没留下…
展开
-
sprinboot jpa @Lob 注解保存的值为数字问题
lob注解的值保存数据库为数字问题原创 2022-10-10 17:57:17 · 244 阅读 · 0 评论 -
雪花算法导致返回前端ID不一致问题
前后端ID值不一致原创 2022-09-29 16:41:04 · 790 阅读 · 0 评论 -
Can‘t find bundle for base name messages, locale zh_CN
ResourceBundleMessageSource:223 - ResourceBundle [messages] not found for MessageSource: Can't find bundle for base name messages, locale zh_CN原创 2021-06-16 11:10:38 · 1764 阅读 · 0 评论 -
JPA @Query条件动态查询
@Query(value = "select new com.matech.auditing.fileLog.FileCollectionDTO(att.id,att.originalName,att.createdTime) from ReleasedPaper r " + "left join r.attach att where att.id is not null " + " and (:originalName is null or att...原创 2021-05-21 16:02:22 · 4914 阅读 · 1 评论 -
Spring Data JPA 关联关系注解
关联关系注解包括 @JoinColumn、@OneToOne、@OneToMany、 @ManyToOne、@ManyToMany、@JoinTable、@OrderBy。1. @JoinColumn定义外键关联的字段名称(1)源码语法如下: (2)用法:@JoinColumn主要配合@OneToOne、@ManyToOne、 @OneToMany一起使用,单独使用没有意义。(3)@JoinColumns定义多个字段的关联关系。2. @OneToOne关联关系 (..原创 2021-06-02 11:02:00 · 913 阅读 · 0 评论 -
JPA获取数据库表名和属性
Jpa根据实体配置获取数据库表名;package com.matech.auditing.fileLog.api.controller.file;import org.hibernate.SessionFactory;import org.hibernate.internal.SessionFactoryImpl;import org.hibernate.persister.entity.EntityPersister;import org.hibernate.persister.enti原创 2021-05-21 14:45:41 · 1802 阅读 · 1 评论