e_e
- 浏览: 83900 次
- 性别:
- 来自: 上海
社区版块
- ( 0)
- ( 0)
- ( 0)
最新评论
文章列表
- 博客分类:
- mysql,jpa,hibernate
第一种:
@transactional
@modifying
@query(value = "update userpo set voided = 1 where id = ?1")
@override
void deletebyid(@notnull long userid);
第二种:(更底层)
@entity
@table(name="table")
@actionoverride(action="delete", with="activeflag = false")
public ...
- 2019-03-04 11:32
- 浏览 452
- 分类:开源软件
- 博客分类:
- mysql,jpa,hibernate
authority 角色
permission 权限
authority_permission 中间表
现在要对中间表进行操作,但是中间表的两个字段分别是两个主表的外键,而不是主键,所以要给这张中间表创建一个联合主键,然后就可以对中间表进行操作了,
详见
authoritypermission.java
authoritypermissionid.java
@entity
@table(name = "authority", schema = "msa")
@cache(usage = cacheconcurrencystrat ...
- 2019-01-14 15:41
- 浏览 2434
- 分类:开源软件