Last active
September 17, 2020 00:54
-
-
Save GuyCui/655d64be40ee97066b490a2aaed6be01 to your computer and use it in GitHub Desktop.
JPA 查询数据库|-|{"files":{"JPA 代码片段.java":{"env":"plain","abbr":""}},"tag":"Java"}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private final JPAQueryFactory jpaQueryFactory; | |
QProductOrderItem qProductOrderItem = QProductOrderItem.productOrderItem; | |
jpaQueryFactory.select(qProductOrderItem.perPrice).from(qProductOrderItem).where(qProductOrderItem.id.eq(wld.getProductOrderItemId())).fetchFiCODEEXPANDER_CLIPBOARD | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private final JPAQueryFactory jpaQueryFactory; | |
QProductOrderItem qProductOrderItem = QProductOrderItem.productOrderItem; | |
jpaQueryFactory.select(qProductOrderItem.perPrice).from(qProductOrderItem).where(qProductOrderItem.id.eq(wld.getProductOrderItemId())).fetchFirst(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment