XML is only needed if you don't write Java code and want to use the GenericDAOs. Annotations can be used if you write Java code, but they're not required. You can still use XML like you have below. Hope this helps clarify.
On Sep 16, 2010, at 12:25 PM, jackalista wrote: > > OK, I tried using the following XML in applicationContext.xml and it made no > difference, both with the @Repository annotation present and with it > removed: > > <bean id="personDao" > class="com.foo.mdm.poc.dao.hibernate.PersonDaoHibernate"/> > > I'm going to try to add some language to the tutorial about commenting out > the generic DAO reference in applicationContext.xml, as that did help to > reduce the exceptions. > -- > View this message in context: > http://appfuse.547863.n4.nabble.com/problem-with-hibernate-tutorial-imports-for-annotations-tp2541421p2542732.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net