2016-01-20 21:04:35 -06:00
|
|
|
package com.baeldung.spring;
|
2013-05-05 20:58:56 +03:00
|
|
|
|
|
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.context.annotation.ImportResource;
|
|
|
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
|
@EnableTransactionManagement
|
2016-01-20 21:04:35 -06:00
|
|
|
@ComponentScan({ "com.baeldung.persistence.dao", "com.baeldung.persistence.service" })
|
2013-05-11 14:27:39 +03:00
|
|
|
@ImportResource({ "classpath:hibernate4Config.xml" })
|
2013-07-04 12:51:44 +03:00
|
|
|
public class PersistenceXmlConfig {
|
2013-05-05 20:58:56 +03:00
|
|
|
|
2013-07-04 12:51:44 +03:00
|
|
|
public PersistenceXmlConfig() {
|
2013-05-05 20:58:56 +03:00
|
|
|
super();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|