I am looking to create a criteria query, on association only if it is an assoication.
There are so many types such as Date, Map, Set, int, Integer, Long and so on that make it hard to properly check if a declared field is an association.
Is there a simple way to find this out using Hibernate already?