Thursday, 19 September 2013

Spring annotation attribute setting with method invocation

Spring annotation attribute setting with method invocation

I've got the spring configuration class:
@Configuration
@EnableJpaRepositories
InfrastructureContextConfiguration
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory()
{...}
I wish to set the entityManagerFactoryRef attribute of the
@EnableJpaRepositories with entityManagerFactory().getObject() invocation.
Can I do that and how if it is allowed?

No comments:

Post a Comment