0
votes

i'm sure there's a way to do this

Does anybody know if there is a way to view the SQL generated by Objectify for Google App Engine (i want to make sure my batch sql statements are working correctly)

I know in Hibernate there's a simple XML key to turn this on - is there anything like this for Objectify?

1

1 Answers

1
votes

There is no SQL. The GAE datastore does not use SQL; the Low Level API roughly looks like a "hashmap of hashmaps" with a handful of primitive operations like get, put, delete, and query.

This may help: http://code.google.com/p/objectify-appengine/wiki/Concepts

That said, Objectify4 will log a large quantity of information if you enable DEBUG logging for com.googlecode.objectify. It's a bit like drinking from the firehose. You won't find SQL, however.