title: Spring data facet does not work in Intellij 14
body: <p>Right now I am in progress of setup REST api template. I want to use spring boot with spring data integration, everything works nice, but I would like to take an advantages in Intellij 14 spring data plugin and enable autocompletion on i.e. <code>findByFirstName(...)</code> . I try to achieve something like in this intelij 11 demo <a href="http://blog.jetbrains.com/idea/2011/11/enjoy-spring-data-jpa-in-intellij-11/" rel="nofollow noreferrer">http://blog.jetbrains.com/idea/2011/11/enjoy-spring-data-jpa-in-intellij-11/</a></p>
  
  <p>How to enable spring data plugin in existing project?</p>
  
  <p>My current configuration
  <img src="https://i.stack.imgur.com/QG8Rd.png" alt="Intelij settings"></p>
  
  <pre><code>@SpringBootApplication
  public class Application {
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  }
  
  @Configuration
  @EnableTransactionManagement
  @EnableJpaRepositories("com.test.repository")
  public class TestDataBaseConfiguration {
          @Bean
          public DataSource dataSource() {
              return new EmbeddedDatabaseBuilder().setType(EmbeddedDatabaseType.H2).build();
          }
  
          @Bean
          public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
              LocalContainerEntityManagerFactoryBean entityManagerFactoryBean = new LocalContainerEntityManagerFactoryBean();
              entityManagerFactoryBean.setDataSource(dataSource());
              entityManagerFactoryBean.setJpaVendorAdapter(new HibernateJpaVendorAdapter());
              entityManagerFactoryBean.setPackagesToScan("com.test.entities");
              entityManagerFactoryBean.setJpaProperties(jpaProperties());
              return entityManagerFactoryBean;
          }
  
          private Properties jpaProperties() {
              Properties properties = new Properties();
              properties.setProperty("hibernate.hbm2ddl.auto", "create-drop");
              properties.setProperty("hibernate.dialect", "org.hibernate.dialect.H2Dialect");
              properties.setProperty("hibernate.show_sql", "false");
              properties.setProperty("hibernate.format_sql", "false");
              return properties;
          }
  
          @Bean
          public JpaTransactionManager transactionManager() {
              JpaTransactionManager transactionManager = new JpaTransactionManager();
              transactionManager.setEntityManagerFactory(entityManagerFactory().getObject());
              transactionManager.setDataSource(dataSource());
              return transactionManager;
          }
  }
  </code></pre>