Skip to content

Commit

Permalink
Fix Attempt to use transient object as parameter in query warning i…
Browse files Browse the repository at this point in the history
…n test

Signed-off-by: nscuro <nscuro@protonmail.com>
  • Loading branch information
nscuro committed Sep 11, 2024
1 parent eca7ab7 commit f2761e3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1172,9 +1172,11 @@ public void getVulnerabilitiesByTagTest() {
Vulnerability vuln1 = new Vulnerability();
vuln1.setVulnId("ACME-1");
vuln1.setSource(Vulnerability.Source.INTERNAL);
qm.persist(vuln1);
Vulnerability vuln2 = new Vulnerability();
vuln2.setVulnId("ACME-2");
vuln2.setSource(Vulnerability.Source.INTERNAL);
qm.persist(vuln2);
Tag tag = qm.createTag("v-tag");
qm.bind(vuln1, List.of(tag));
qm.bind(vuln2, List.of(tag));
Expand Down

0 comments on commit f2761e3

Please sign in to comment.