I have a Spring Scaffolded “find” method that correctly does not return a row from my database. If I print the contents of the pointer to the “find” method using “System.out.println(“The contents of the Set are:”+ ptr);” what is printed is the following: “The contents of the Set are: [ ]” (with no space in between, I did that for clarity). When I compare using “if (ptr.equal(“[ ]”)…” it never goes inside the “if” statement. When I compare using “if (ptr.equal(null)…” it never goes inside the “if” statement. Or even “if (ptr.equal(“”)…” it never goes inside the “if” statement.
How do I make the check to test if row information was not returned from the Scaffolded “find” method? It seems that even when I use the exact characters printed in my debug statement, that doesn’t work.