3
I am using Hibernate 5.2.1.Final as an implementation to handle Mysql database. The problem is that the tables are being generated with the first letter in high box, would like to force to be all in low box via persistence file. Currently my file is this:
<persistence-unit name="testeUP" transaction-type="RESOURCE_LOCAL">
<properties>
<property name="javax.persistence.jdbc.url" value="jdbc:mysql://192.168.56.100:3306/locadora"/>
<property name="javax.persistence.jdbc.user" value="root"/>
<property name="javax.persistence.jdbc.password" value="1QAZxsw2"/>
<property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/>
<property name="hibernate.hbm2ddl.auto" value="update"/>
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
<property name="hibernate.diaLect" value="org.hibernate.diaLect.MySQLDiaLect"/>
</properties>
</persistence-unit>
Is it possible to force this behavior? If so, how?
Is there a reason to use uppercase L instead of lowercase in words dialect of "
hibernate.diaLect
" and also in "org.hibernate.diaLect.MySQLDiaLect
"? I think this should be tiny.– Victor Stafusa
Friend I suggest you consult this material, unfortunately I am without time to help you but I suggest reading this tutorial (it is in English): [Implementing a Custom Naming Strategy With Hibernate](https://www.petrikainulainen.net/programming/tips-and-tricks/implementing-a-custom-namingstrategy-with-Hibernate/ "Implementing a Custom Naming Strategy With Hibernate")
– Jose Anderson Pereira