title: change Hibernate 5 naming strategy + spring boot + annotation
body: <p>My spring boot project is using <code>JPA</code> hibernate annotation in entity classes. I have my own generic repository and I'm <code>NOT</code> getting the Hibernate SessionFactory from JPA's entityManagerFactory.  The problem occurs when new tables and columns are created. Camel columns are created with an underscore on the database. 
  I changed the naming strategy to <code>org.hibernate.cfg.EJB3NamingStrategy</code> in <code>application.yml</code> but nothing fixed.</p>
  
  <p>application.yml:</p>
  
  <pre><code> jpa:
      database-platform: org.hibernate.dialect.MySQL5InnoDBDialect 
      show-sql: true 
      hibernate:
          ddl-auto: update 
          naming-strategy: org.hibernate.cfg.EJB3NamingStrategy
  </code></pre>
  
  <p>Getting hibernate session in My own Generic repository (not using EntityManager):   </p>
  
  <pre><code>@Autowired
  public SessionFactory   sessionFactory;
  
  public Session getSession() {
      try {
          return sessionFactory.getCurrentSession();
      } catch (HibernateException e) {
          System.out.println(e.getMessage().toString());
      }
      return sessionFactory.openSession();
  }
  </code></pre>
  
  <p>I used to create a custom namingStrategy extending <code>ImplicitNamingStrategyJpaCompliantImpl</code> but nothing happened!</p>
  
  <p>What is wrong? </p>
  
  <p><code>What I want:</code></p>
  
  <p>columns created in camel in the database. even tables!</p>