// Path: persistence/src/main/java/org/sample/persistence/repository/DummyRepository.java
// @Transactional
// public interface DummyRepository extends JpaRepository<Dummy, Long> {
// 
// 	@Query("select c from Dummy c where c.name = ?1")
// 	List<Dummy> findByName(String name);
// 
// }


import java.util.Properties;
import javax.management.MBeanServer;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.management.ManagementService;
import org.apache.tomcat.jdbc.pool.DataSource;
import org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory;
import org.hibernate.dialect.DerbyTenSevenDialect;
import org.sample.persistence.repository.DummyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.ehcache.EhCacheManagerFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.io.ClassPathResource;
import org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.jmx.support.MBeanServerFactoryBean;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.orm.jpa.JpaVendorAdapter;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 
 */
package org.sample.persistence.spring;





/**
 * @author mpostelnicu
 * 
 */
@Configuration
@Lazy

// Path: persistence/src/main/java/org/sample/persistence/repository/DummyRepository.java
// @Transactional
// public interface DummyRepository extends JpaRepository<Dummy, Long> {
// 
// 	@Query("select c from Dummy c where c.name = ?1")
// 	List<Dummy> findByName(String name);
// 
// }


// Path: persistence/src/main/java/org/sample/persistence/spring/PersistenceApplicationConfiguration.java
import java.util.Properties;
import javax.management.MBeanServer;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.management.ManagementService;
import org.apache.tomcat.jdbc.pool.DataSource;
import org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory;
import org.hibernate.dialect.DerbyTenSevenDialect;
import org.sample.persistence.repository.DummyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.ehcache.EhCacheManagerFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.io.ClassPathResource;
import org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.jmx.support.MBeanServerFactoryBean;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.orm.jpa.JpaVendorAdapter;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 
 */
package org.sample.persistence.spring;





/**
 * @author mpostelnicu
 * 
 */
@Configuration
@Lazy

@EnableJpaRepositories(basePackageClasses = DummyRepository.class)
