I try to set my JPA mapping. For some reasons i have to have the same java variable / table column names (including capital letters) but i cant set the hibernate up. I tried with explicit column names:
@Type(type="java.lang.Integer")
@Column(name = "nextInvoiceNr")
public int nextInvoiceNr;
and with implicit mapping:
@Type(type="java.lang.Integer")
public int nextInvoiceNr;
Both of those methods create column name without upper letters - "nextinvoicenr".
I also tried to change hibernate configuration adding there:
lConf.setProperty("hibernate.implicit_naming_strategy", "org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl");
lConf.setProperty("hibernate.physical_naming_strategy", "org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl");
but without success