![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
2015
shangzebei
文章有错误的地方可以联系纠正QQ:917058965
展开
-
jpa的entry审查Auditing
We provide @CreatedBy, @LastModifiedBy to capture the user who created or modified the entity as well as @CreatedDate and @LastModifiedDate to capture the point in time this happened.当使用@CreatedBy时会使用...原创 2018-04-04 17:42:50 · 226 阅读 · 0 评论 -
JPA @MappedSuperclass注解的总结
1.@MappedSuperclass注解只能标准在类上:@Target({java.lang.annotation.ElementType.TYPE}) 2.标注为@MappedSuperclass的类将不是一个完整的实体类,他将不会映射到数据库表,但是他的属性都将映射到其子类的数据库字段中。 3.标注为@MappedSuperclass的类不能再标注@Entity或@Table注解,也...原创 2018-04-04 17:45:10 · 1467 阅读 · 0 评论 -
mongdb查询笔记
10.3.1. Repository delete queriesThe above keywords can be used in conjunction with delete…By or remove…By to create queries deleting matching documents.Example 75. Delete…By Querypublic interface Per...原创 2018-04-04 17:48:32 · 188 阅读 · 0 评论 -
mapstruts的基本使用
手写实现类 @Mapper public interface CarMapper { @Mappings({...}) CarDto carToCarDto(Car car); default PersonDto personToPersonDto(Person person) { //hand-written mapping logic } }...原创 2018-04-04 17:54:46 · 2567 阅读 · 0 评论