Added support for entity definitions as inner classes in ApplicationMetadata.
Added better error reporting to the exception message in case the users specified an incorrect type for one of their fields in the entity they are trying to query against.
Added error logging before throw statement, as requested in comment: https://github.com/petermetz/Kundera/commit/302212a9ec671847faf2b0f9dc4b3cfc0a1c2d90#commitcomment-5661552
Merge pull request #546 from petermetz/trunk

Inner class support for entities, improved message for exceptions about decomposing.