title: hibernate.properties not found config?
body: <p>here are my 3 classes:</p>
  
  <pre><code>@Configuration //Marks this class as configuration
  //Specifies which package to scan
  @ComponentScan({"pl.jpet"})//,"pl.dup"})
  //Enables Spring's annotations
  @EnableWebMvc
  //@EnableTransactionManagement
  @PropertySource("classpath:application.properties")
  public class Config {
  
      @Resource
      private Environment env;
  
      @Bean(name = "dataSource")
      public BasicDataSource dataSource() {
  
          BasicDataSource ds = new BasicDataSource();
  
          ds.setDriverClassName("com.mysql.jdbc.Driver");
          ds.setUrl("jdbc:mysql://localhost:3306/wikidb");
          ds.setUsername("root");
          ds.setPassword("root");
  
          return ds;
      }
  
      @Bean
      public HibernateExceptionTranslator hibernateExceptionTranslator() {
          return new HibernateExceptionTranslator();
      }
  
      @Bean
      @Autowired
      public EntityManagerFactory entityManagerFactory(BasicDataSource dataSource) {
  
  
          HibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();
          vendorAdapter.setDatabasePlatform("org.hibernate.dialect.MySQL5InnoDBDialect");
          vendorAdapter.setDatabase(Database.MYSQL);
  
          LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();
          factory.setJpaVendorAdapter(vendorAdapter);
          factory.setDataSource(dataSource);
  
          factory.setPersistenceUnitName("wikidb");
          factory.setPackagesToScan("pl.jpet");
          factory.afterPropertiesSet();
  
          return factory.getObject();
      }
  
      @Bean
      @Autowired
      public JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
  
          JpaTransactionManager txManager = new JpaTransactionManager();
          JpaDialect jpaDialect = new HibernateJpaDialect();
          txManager.setEntityManagerFactory(entityManagerFactory);
          txManager.setJpaDialect(jpaDialect);
          return txManager;
      }
  
  ----------------------------------------------------------------------
  
  package pl.jpet.model;
  
  import lombok.Data;
  
  import javax.persistence.Column;
  import javax.persistence.Entity;
  import javax.persistence.Id;
  import javax.persistence.Table;
  
  @Entity
  @Data
  @Table(name="zrobmitabele") 
  public class TestModel {
  
      @Id
      @Column(name = "name", nullable = false)
      private String name;
  
  }
  
  
  -----------------------------------------------------------------------------
  
  
  @Transactional
  @RestController
  @RequestMapping("/una")
  public class UnauthenticatedController {    
      @PersistenceContext
      private EntityManager em;
  
      @Transactional
      @RequestMapping(method = RequestMethod.GET,value="/checkLogin")
      public ResponseEntity&lt;String&gt; checkLogin() throws IOException {
  
  
              TestModel test = new TestModel();
              test.setName("KUBA");
              em.persist(test);
  
              return new ResponseEntity&lt;String&gt;(HttpStatus.OK);
  
  
      }
  
  
  
  
  }
  </code></pre>
  
  <p>I'm getting this info on start "INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000206: hibernate.properties not found" but still it's not crushing, even after I'm making call to "/una" service it's not throwing anything - Guess there's something wrong with my Config class but i have no idea what, anyone ?</p>