Coder Social home page Coder Social logo

UUID to varchar conversion problem about jimmer HOT 8 CLOSED

a8t3r avatar a8t3r commented on September 21, 2024
UUID to varchar conversion problem

from jimmer.

Comments (8)

babyfish-ct avatar babyfish-ct commented on September 21, 2024

Now, scalar provider is the only one choice.

The sqlType of @column is very youg feature which is only used by in-list predicate optimization for H2 and PG. it is not common&old feature for everything include scalar provider guessing.

Next, the @Column.sqlTypes can become bigger so that it can be used by more other features. But now, the most important job is save command reactor, please wait

from jimmer.

babyfish-ct avatar babyfish-ct commented on September 21, 2024

Try 0.8.132

from jimmer.

a8t3r avatar a8t3r commented on September 21, 2024

@babyfish-ct Doesn't work.
Your patch applies on properties, not types.

from jimmer.

babyfish-ct avatar babyfish-ct commented on September 21, 2024

Of course, it can only be guessed for the metadata of property which tells the UUID is binary of text.

from jimmer.

babyfish-ct avatar babyfish-ct commented on September 21, 2024

Please specify the @Column.sqlType explicitly, No metadata, no guessing.

from jimmer.

a8t3r avatar a8t3r commented on September 21, 2024

Screenshot from 2024-05-20 10-20-23
This is my execution stack. When rendering variables, it looks up the scalar provider by type:

ScalarProvider<Object, Object> scalarProvider =
            ctx.getSqlClient().getScalarProvider((Class<Object>) value.getClass());

from jimmer.

a8t3r avatar a8t3r commented on September 21, 2024

I write simple test to reproduce the issue

from jimmer.

babyfish-ct avatar babyfish-ct commented on September 21, 2024

Currently, Jimmer is undergoing a major refactor, so the problem that can be solved by one statement code will be delayed.

from jimmer.

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.