mirror of
https://github.com/sismics/docs.git
synced 2024-11-24 22:57:56 +01:00
fix test
This commit is contained in:
parent
8bd4d27d2f
commit
a86af9736b
@ -232,7 +232,8 @@ public class DocumentDao {
|
|||||||
*/
|
*/
|
||||||
public void updateFileId(Document document) {
|
public void updateFileId(Document document) {
|
||||||
EntityManager em = ThreadLocalContext.get().getEntityManager();
|
EntityManager em = ThreadLocalContext.get().getEntityManager();
|
||||||
Query query = em.createNativeQuery("update T_DOCUMENT d set d.DOC_IDFILE_C = :fileId where d.DOC_ID_C = :id");
|
Query query = em.createNativeQuery("update T_DOCUMENT d set d.DOC_IDFILE_C = :fileId, d.DOC_UPDATEDATE_D = :updateDate where d.DOC_ID_C = :id");
|
||||||
|
query.setParameter("updateDate", new Date());
|
||||||
query.setParameter("fileId", document.getFileId());
|
query.setParameter("fileId", document.getFileId());
|
||||||
query.setParameter("id", document.getId());
|
query.setParameter("id", document.getId());
|
||||||
query.executeUpdate();
|
query.executeUpdate();
|
||||||
|
Loading…
Reference in New Issue
Block a user