Giter Site home page Giter Site logo

Comments (4)

janithb avatar janithb commented on June 20, 2024

Hi @massfords ,

We already Identified this issue and currently in progress of developing the solution. We thought of using pluggable serializer to extract object to relevant audit record based on annotations in the object fields (ex: MyDTO). I have developed below couple of serializes similar to old toString implementation. Please refer below implementations.

https://github.com/audit4j/audit4j-core/blob/master/src/main/java/org/audit4j/core/ObjectToFieldsSerializer.java

https://github.com/audit4j/audit4j-core/blob/master/src/main/java/org/audit4j/core/ObjectToStringSerializer.java

Using this method, users are able to plug their own serializer implementation based on the requirement (Ex: JSONable, XML). then you don't need to implement a custom a annotation transformer

What do you think.

from audit4j-core.

massfords avatar massfords commented on June 20, 2024

A pluggable serializer seems like the right approach. I took a quick look at the source. I don't see a way to configure the serializer yet but I'm guessing this is still a work in progress.

from audit4j-core.

janithb avatar janithb commented on June 20, 2024

This issue is resolved.

Fixes are available in Audit4j 2.4.1-RC1 release

@massfords Please test and verify.

from audit4j-core.

janithb avatar janithb commented on June 20, 2024

This issue is fixed in 2.4.1

from audit4j-core.

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.