admin管理员组

文章数量:1291629

I don't really know how to explain the problem accordingly but its being stuck at the first line, not every time though I don't even change anything in the code but when I restart the application suddenly it doesnt work.

public TradeHistory fetchTradeHistory() {
    var trade = QTrade.trade; // stuck here
    var p = QTradePerformance.tradePerformance;

    var query = queryFactory.select(
                    Projections.constructor(TradeHistory.Item.class,
                            trade.actionDate,
                            trade.createdAt,
                            trade.type,
                            trade.holding.stock.symbol,
                            trade.price,
                            trade.quantity,
                            p.profit,
                            p.returnPercentage,
                            p.performanceCategory
                    )
            )
            .from(trade)
            .leftJoin(trade.performance, p)
            .where(trade.holding.user.id.eq(AuthenticationProvider.getUser().getId()))
            .orderBy(trade.createdAt.desc())
            .fetch();

    return new TradeHistory(query);
}

Also I get this warning in the intellij 'Skipped breakpoint at dev.canverse.stocks.service.stock.TradeService:59 because of stepping in another thread'.

I don't get this problem everywhere. Just in this specific function. Query isn't even being executed.

本文标签: OpenFeign QueryDSL QClassproperty Stuck At First LineStack Overflow