Now, SQL single apostrophe escaped with two apostrophes rather than the E syntax. Hibernate messes with the E syntax, and strips out the appropriate backslash