NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String)

If you are using Hibernate 5.+ and Glassfish 4.X or other earlier version , you will probably see this error. That's happening because there is a conflict between Glassfish modules and your project dependency, more specifically the lib org.jboss.logging. It's happening because the method org.jboss.logging.Logger.debugf is only available in the jboss-logging version 3.3.0 or later and there is on … Continue lendo NoSuchMethodError: org.jboss.logging.Logger.debugf(Ljava/lang/String)

Hibernate JPA 2.1 – StoredProcedureQuery

Thanks to... someone... that we have JPA 2.1 and the feature StoredProcedureQuery. Throught this method we can call easily a procedure in our database, set parameters and convert the possible result into Java object automatically. Let's imagine a simple procedure called 'SALES_ACCOUNTING' that receives two dates ('INITIALDATE' and 'FINALDATE') that determine the time period and … Continue lendo Hibernate JPA 2.1 – StoredProcedureQuery