Announcement Announcement Module
Collapse
No announcement yet.
hibernate.properties with JavaConfig Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • hibernate.properties with JavaConfig

    I do use JavaConfig to configure Hibernate within my application.

    The problem is, the Hibernate seems to be looking for plain text configuration file on classpath:

    <HHH000206: hibernate.properties not found>

    Is there a way to turn off this message while still allow me to use JavaConfig?

    Thanks

  • #2
    As stated it is just a message... Hibernate by default at startup looks for hibernate.properties and hibernate.cfg.xml and logs a debug message if those aren't found. So disable debug (or was it info?) for hibernate and you will not see the message...

    Comment


    • #3
      It was INFO

      INFO [org.hibernate.cfg.Environment] - <HHH000206: hibernate.properties not found>

      Maybe poorly chosen debug level for this message.
      Strange is I don't have hibernate.properties neither hibernate.cfg.xml, and it notifies me only for the first one.

      Anyway thanks for your reply Marten

      Comment

      Working...
      X