Fixed JNDI warnings when running tests
Allowed custom restriction using a HqlQueryValue

- Added where/and/or methods to allow restricting based on an hql query value. This is a custom restriction and if you do it wrong, then you are on your own.
Unit test for the custom hql restriction injection
Added the possibility to override the default aliases

- It is now possible to set the aliases of the proxy objects
  so that the query can work together with hql generation frameworks
  which would inject HqlQueryValues as restrictions
- Also added a unit test for the customAlias addition
Added an order by based on an alias

- It is now possible to order by an alias instead of a value.
  The value will be resolved when the query is generated.
  This way it is possible to order by a selection dto field without
  having to know what was put into the field.
- Also added a unit test for this feature