HHH000342: Could not obtain connection to query metadata : null

We Are Going To Discuss About HHH000342: Could not obtain connection to query metadata : null. So lets Start this Java Article.

HHH000342: Could not obtain connection to query metadata : null

  1. HHH000342: Could not obtain connection to query metadata : null

    Rename hibernate.connection.dialect to hibernate.dialect in your persistence.xml
    I would also suggest you use MySQLInnoDBDialect or MySQLMyISAMDialect directly.
    And it needs to be the full class name like this:
    <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>

  2. Could not obtain connection to query metadata : null

    Rename hibernate.connection.dialect to hibernate.dialect in your persistence.xml
    I would also suggest you use MySQLInnoDBDialect or MySQLMyISAMDialect directly.
    And it needs to be the full class name like this:
    <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>

Solution 1

Rename hibernate.connection.dialect to hibernate.dialect in your persistence.xml

I would also suggest you use MySQLInnoDBDialect or MySQLMyISAMDialect directly.

And it needs to be the full class name like this:

<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>

Original Author coladict Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment