Giter Club home page Giter Club logo

Comments (2)

ArtDu avatar ArtDu commented on July 28, 2024

Is it possible somehow through the Repository/Query interface to put a non-nested interface like list/tuple?
I could not send the non-nested structure to the Tarantool as a list/tuple

@Data
@Builder
public class System {
    @Id
    @Field("id")
    private Integer id;

    @Field("name")
    private String name;

    @Field("response_needed")
    private Boolean responseNeeded;

    @Field("check_sender_bic_needed")
    private Boolean checkSenderBicNeeded;

    @Field("duplicate_check_needed")
    private Integer duplicateCheckNeeded;

    @Field("aggregation_needed")
    private Boolean aggregationNeeded;

    @Field("unpacking_needed")
    private Boolean unpackingNeeded;

    @Field("message_priority")
    private String messagePriority;

    @Field("bic_mask")
    private List<?> bicMask;

    @Field("enabled")
    private Boolean enabled;
}
@Tuple("system")
public interface SystemRepository extends TarantoolRepository<System, Integer> {
    @Query(function = "get_system")
    Optional<System> getSystem(Integer id);

    @Query(function = "replace_system")
    Optional<System> replaceSystem(System system);

}
main/1175/main I> {"message_priority":"Hello","id":1,"response_needed":true,"bic_mask":"Arrays.asList(id, \"Hello\")","unpacking_needed":false,"duplicate_check_needed":1,"enabled":true,"check_sender_bic_needed":false,"name":"Hello","aggregation_needed":true}

from cartridge-springdata.

ArtDu avatar ArtDu commented on July 28, 2024

In the comment above, I pointed out that I cannot pass an object in a function argument as a tuple without field keys, i.e. this will always be a Map(if the @Query method is used). And there is a wish to be able to transfer the list/tuple, since extra handover of keys affects the performance

from cartridge-springdata.

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.