mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
quick test
This commit is contained in:
parent
e39c83a5a6
commit
94951c59f3
@ -231,11 +231,11 @@ public class DocumentDao {
|
|||||||
* @param document Document
|
* @param document Document
|
||||||
*/
|
*/
|
||||||
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 where d.DOC_ID_C = :id");
|
||||||
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