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

Hibernate and Firebird – Support for Temporary Tables

I had problems to use Hibernate(JPA) to work with Firebird a while ago. Every connection opened was not being closed, I couldn't ever think to use a pool of connection in my web service and the temporary tables was being created next to other tables. In this post, I will focus on the problem with … Continue lendo Hibernate and Firebird – Support for Temporary Tables

Livro JPA Eficaz de Hébert Coelho – Parte II

Estou um pouco sem tempo então vou acabar postando em pedaços algumas essências que extrai do que li desse excelente livro. Uns lembretes interessantes que pude rever no livro é a diferença do uso do JPA em um sistema Java SE do uso em um sistema Java EE. Existem algumas facilidades no Java EE, onde o … Continue lendo Livro JPA Eficaz de Hébert Coelho – Parte II

Livro JPA Eficaz de Hébert Coelho – Parte I

Li 50 páginas desse livro em menos de 1 hora, isso levando em conta o entendimento dos códigos de exemplos. Sim, é um livro focado em didática e que passei a recomendar para quem quer iniciar a usar uma ferramenta de ORM baseada nas regras do JPA ou pra quem quer rever alguns conceitos e aprender algumas boas dicas. … Continue lendo Livro JPA Eficaz de Hébert Coelho – Parte I