Git Product home page Git Product logo

Comments (5)

lpandzic avatar lpandzic commented on May 22, 2024

You mean like transient fields that are not present in the table?

from infobip-spring-data-querydsl.

tianyu94 avatar tianyu94 commented on May 22, 2024

You mean like transient fields that are not present in the table?

Only when updating, My table has created_date and created_by fields.

When I call org.springframework.data.repository.CrudRepository#save (update an entity) the generated SQL has created fields, But they only exist when they are created, Is this spring-data-jdbc's auditing bug?

from infobip-spring-data-querydsl.

lpandzic avatar lpandzic commented on May 22, 2024

It's possible but you have to do it manually by specifying a projection in your query that doesn't have the fields you don't need. Default projection contains all fields, example of customization is here - https://github.com/infobip/infobip-spring-data-querydsl#JDBCProjections.

from infobip-spring-data-querydsl.

lpandzic avatar lpandzic commented on May 22, 2024

Hm, not sure about updates though (this is only for select), it'd have to have tighter integration with Spring Data JDBC.

from infobip-spring-data-querydsl.

tianyu94 avatar tianyu94 commented on May 22, 2024

It may be a spring-data-jdbc problem, I can only temporarily attach the corresponding field when updating to avoid it being empty

from infobip-spring-data-querydsl.

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.