Member.execute(String.format("DELETE FROM %s WHERE name = 'Mary'", Member.TABLE_NAME));
That String.format looks dangerous, especially in a DELETE. Sure, it's a constant in this instance, but other examples use a parameterized ?, so this String.format jumps out.Show HN: Writing SQL expressions using Java syntax
11–14 of 14 posts
Re: Show HN: Writing SQL expressions using Java syntax
#12Just wondering, why use this over Spring + JPA? Does this support reactive data patterns or something? I don't see much in the way of differences. Just not sure what makes this different to what's out there
Re: Show HN: Writing SQL expressions using Java syntax
#13It seems to use Hibernate which is the worst part of Spring/Boot/JPA. Unless it supports other persistence interfaces I wouldn't use it.
Re: Show HN: Writing SQL expressions using Java syntax
#14How does it compare to JOOQ? https://github.com/jooq/jooq
That would depend on your chosen collation