摘要:
开发过程中,看到了在JPA中使用Iterator的参数写法,感到费解——为什么不直接用List呢?于是去查询下。 Iterator<E> @Query(nativeQuery = true, value = "SELECT * FROM table WHERE column IN (?1)") Li 阅读全文
摘要:
工作中看到JPA中有一个@Modifying的用法,故此记录一下 JDK1.8 Springboot2 JPA Oracle 之前一直用的是这样的写法: String updateQuery = "UPDATE user SET name = :name WHERE id = :id"; Entit 阅读全文