我不知道为什么总是抛出这个表达式 NullPointerException:
String jpql = "DELETE Trend t WHERE t.owner = :owner AND t.shapeId = :shapeid AND t.security = :security AND t.timeframe = :timeframe";
int rows = 0;
try {
Query q = em.createQuery(jpql, Trend.class); // this line throw the exception
...
其他请求成功执行。