4 Replies Latest reply on May 21, 2007 10:37 AM by grettke_spdr

    Hibernate SQL statements are not getting logged

    grettke_spdr

      Hi folks,

      I'm running Seam 1.2.1 on JBoss 4.0.5GA.
      Also using JPA EntityManager, not going straight against a Session.

      In each of my persistence.xmls, I've added

      <!-- Echo all executed SQL to stdout -->
      <property name="show_sql" value="true" />
      <!-- pretty print of all SQL-Statements -->
      <property name="hibernate.format_sql" value="true" />
      


      to the properties of my datasource.

      When the app is deployed, I can see the sql statements that create the database (as hibernate.hbm2ddl.auto is set to create-drop). I can also see the statements for entities get pregenerated. This is all in the default server log.

      When I run the app, persist my entities, and let the method complete on the EJB, I don't see the actual SQL that is getting executed to persist my entities.

      What am I doing wrong here?