Giter Site home page Giter Site logo

Reachability metadata for hibernate-orm does not cover reflection in org.hibernate.dialect.PostgreSQLPGObjectJdbcType about graalvm-reachability-metadata HOT 5 CLOSED

oracle avatar oracle commented on August 23, 2024
Reachability metadata for hibernate-orm does not cover reflection in org.hibernate.dialect.PostgreSQLPGObjectJdbcType

from graalvm-reachability-metadata.

Comments (5)

itineric avatar itineric commented on August 23, 2024

This is not working anymore with hibernate-core 6.2+
The reflect-config.json found in reachable metadata misses the part about PGobject.

Found for 6.1.1-Final

{
    "condition": {
      "typeReachable": "org.postgresql.Driver"
    },
    "name": "org.postgresql.util.PGobject",
    "queryAllDeclaredMethods": true,
    "methods": [
      {
        "name": "<init>",
        "parameterTypes": []
      }
    ]
  },

missing for 6.2.0.Final

from graalvm-reachability-metadata.

msupic avatar msupic commented on August 23, 2024

@itineric - PGobject is initialized in the PostgreSQLPGObjectJdbcType class in hibernate 6.1.7. That class doesn't exit in hibernate 6.2.0 (dialect directory). If you are still using hibernate 6.1.7, you need to use metadata for 6.1.7 instead of metadata for 6.2.0

from graalvm-reachability-metadata.

itineric avatar itineric commented on August 23, 2024

I am getting the following log during add-reachability-metadata

[graalvm reachability metadata repository for org.hibernate.orm:hibernate-core:6.1.7.Final]: Configuration directory not found. Trying latest version.
[graalvm reachability metadata repository for org.hibernate.orm:hibernate-core:6.1.7.Final]: Configuration directory is org.hibernate.orm/hibernate-core/6.2.0.Final

And I cannot find the metadata you are talking about, am I looking at the wrong place ? https://github.com/oracle/graalvm-reachability-metadata/tree/master/metadata/org.hibernate.orm/hibernate-core

from graalvm-reachability-metadata.

msupic avatar msupic commented on August 23, 2024

Sorry, I replaced 6.1.1.Final with 6.1.7.Final but the point is the same, PGobject is initialized in the PostgreSQLPGObjectJdbcType class in 6.1.1.Final and not in 6.2.0.Final, so if you are using hibernate from 6.1.x series, you need to continue using 6.1.1.Final metadata. There is a ticket for native plugins to not always use the latest version metadata: graalvm/native-build-tools#430. Until that is done, you can explicitly set metadata version: #273 (comment)

from graalvm-reachability-metadata.

itineric avatar itineric commented on August 23, 2024

Thanks, I figured it out, its working with the workaround

from graalvm-reachability-metadata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.