Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    zihang, xia
    @xiazihang
    Hi Walacik, how are you?
    i was using javers to diff two objects and hoped it would return me the fields name which are different.
    but in my case, there're some special requirements and i didnt figure out a way to meet them
    i can show you some code
    zihang, xia
    @xiazihang
    class Person {
             @PropertyName("detail.change")
             Detail detail
    }
    
    class Detail {
             String name;
             String age;
    }
    like this
    I have a class named Person.
    and it has a field named detail which is also an object
    now i want to compare two Person
    and no matter what the changes are, i want it returns me "detail.change" as the property name
    for now if the name or age is different. javers returns me name or age
    do you have any idea that i can do this?
    really appreciate your help!
    Bartosz Walacik
    @bartoszwalacik
    hi @xiazihang this's not help-me channel, this is a channel for contributors
    ask at stack
    zihang, xia
    @xiazihang
    @bartoszwalacik ah okay. thanks anyway
    DienLH
    @dienlh
    Hi every one! I used Javers for history management. But i can't filter like instead of equals with commit properties information. How to do it?
    example: John Smirt, i just want to filter "John " word to found "John Smirt"
    Bartosz Walacik
    @bartoszwalacik
    hi, you mean SQL like with % ?
    DienLH
    @dienlh
    yeap, @bartoszwalacik ! I seen source of Javers when generation query, i see that Javers used "=". If i want to use "Like", What should i do? please help me! Thanks
    Bartosz Walacik
    @bartoszwalacik
    like is not supported
    but you can contribute to Javers and implement support for likes :)
    DienLH
    @dienlh
    @bartoszwalacik Ok thanks! I will apply if javers implement new version and support this.
    helycopternicht
    @helycopternicht
    Hey guys! I hope you are doing well! I want to use Javers in my pet project. And I use PostgreSQL as the main warehouse and MongoDB as a warehouse for audited data. Everything is working great, except for one thing. When I make several requests in a single transaction auditing data persists in Mongo with different commit version. Is it expected behavior when MongoDB is used? I just want to find changes that were been changed in one transaction. –°an someone point me in the right direction?
    Bartosz Walacik
    @bartoszwalacik
    hi, javers doesnt know nothing about your transactions
    helycopternicht
    @helycopternicht
    Thanks for the answer! And if I'll store audited data together with main data javers will use transaction right?
    Bartosz Walacik
    @bartoszwalacik
    if in sql db - yes
    helycopternicht
    @helycopternicht
    Thanks. Whould it helpful to provide this functionality in javers?
    Would *
    skogs
    @skogs
    Hi, is there a way for TERMINAL snapshot to have the last know entity values rather being empty? Or, is there a easy way to retrieve the terminated object? I am using findSnapshots() in the context of Spring Boot. Thanks!
    Btw, Javers is amazing work. Much more easier to configure and intuitive to use and query than envers.
    Bartosz Walacik
    @bartoszwalacik
    Thanks @skogs, nice to hear that :)
    but, no, there is no query for last snapshot of deleted object, if you'd like to contribute such feature, you are welcome
    Daniel Engfeldt
    @dniel
    If I just want to use Javers to detect changes in a object graph, compared to the previous version, and then send notifications to clients if changed.
    And I dont need the persistent respository of thye audit log.
    Is Javers still a good match?
    Bartosz Walacik
    @bartoszwalacik
    yes, thats javers core feature, diff
    Daniel Engfeldt
    @dniel
    yeah, but when starting up without any special repository says "using in-memory repo, please register real repo" and the documentation says in-memory is only for testing, not for production.
    But when running only for using diff-features and not persistence, is the default config with the in-memory enough and usable in production?
    Bartosz Walacik
    @bartoszwalacik
    you dont get it, javers.compare() doesnt use any repo , its a pure function