jack_zhang

Results 70 comments of jack_zhang

参考:https://github.com/zhangzhenhuajack/spring-data-jpa-guide/blob/master/2.3/jpa_jquery_annotation/src/main/java/com/example/jpa/example1/UserDtoRepository.java

更详细的原理讲解见:https://kaiwu.lagou.com/course/courseInfo.htm?courseId=490&sid=20-h5Url-0&buyFrom=2&pageId=1pz4#/detail/pc?id=4721

![image](https://user-images.githubusercontent.com/11462004/41330280-21907d72-6f05-11e8-8940-e31b908661eb.png)

![image](https://user-images.githubusercontent.com/11462004/41330315-5655bd56-6f05-11e8-88f5-ea3336ffb36e.png)

![image](https://user-images.githubusercontent.com/11462004/41330348-86ea0184-6f05-11e8-9e83-6b22429bf6df.png)

![image](https://user-images.githubusercontent.com/11462004/56176143-b0a5e380-602c-11e9-956b-d36b71ee266e.png)

1:When MyEntity.class extend AbstractPersistable . This problem while reshow. 2:Because EntityBinding source code cls.getMethods() while get two getId() Methods,have the some ’AnnotationPresent(Id.class)‘,but One is the interface Persistable‘s Method and return...

JPA 利用left join 返回DTO的例子 ```` @Query(value = "select new com.mega.inventory.service.impl.rule.InventoryUnitDto(u.id, r.registryId, r.registryName, r.registryType, u.inventoryUnitValue, u.packageUnitValue) " + "from RegistryShadow r left join InventoryUnit u on r.registryId = u.registryId and r.registryType...

JPQL比较难,看你的顺序不是 order by Desc ?