Hibernate join implementation.