Merge pull request #1 from speralta/master

Add entity selector it tests.
cosmetics
add fluent to EntitySelector
no need to specify the fetch only when distinct is required
cosmetics
cosmetics
specify mannually the joins when using orders as jpa will do implicit joins with proper "inner" mode

Thanks Nicolas Rougé for the idea/fix !
beef up the integration tests
introduce metamodel util from @speralta
rename NamedQueryUtil to ByNamedQueryUtil to reflect other namings
playing around with metamodelUtil …
cosmetics
hibernate 4.1.4 -> 4.2.3