Dependency injection of @Entity annotated POJOs has greatly simplified the configuration of applications that use an ORM framework like Hibernate or JPA, but that doesn't mean that using annotations is the answer to every problem. In fact, there are many cases when using annotations is a bad approach, and it is much preferable to use a basic, XML configuration file with individual classes being ma