使用JPA來執行本地SQL語句查詢

@PersistenceContext private EntityManager manager;sql String sql = "select max(wm.id) as maxId, min(wm.id) as minId from wm_dayloan_fund as wm "; Query query = manager.createNativeQuery(sql); if (quer
相關文章
相關標籤/搜索