jakie sa roznice w konfigurowaniu springa xml vs java, wlasnie przeczytalem ten artykul
http://www.baeldung.com/2011/12/13/the-persistence-layer-with-spring-3-1-and-jpa/
czy to jedyna roznica?
in XML, a reference to another bean can point to either the bean or a bean factory for that bean. In Java however, since the types are different, the compiler doesn’t allow it, and so the EntityManagerFactory is first retrieved from it’s bean factory and then passed to the transaction manager:
txManager.setEntityManagerFactory( this.entityManagerFactoryBean().getObject() );
czego uzywacie w swoich aplikacjach?