ebean.debug.sql=true and ebean.default.debug.sql=true final Query<User> query = User.find.where().ieq("name", username).query();
user = query.findUnique();
Logger.debug(query.getGeneratedSql());
Add the following to your application.conf:
db.default.logStatements= true
logger.com.jolbox=DEBUG
When I use getGeneratedSql() I don't see the parameters used in the sql string, just the sql query with question marks where the parameters should go. Is there a way to see the params also?
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/QyZwPQRQa1EJ.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.