Coder Social home page Coder Social logo

Comments (8)

matheusmessora avatar matheusmessora commented on August 12, 2024

How about use Hibernate Envers?
http://docs.jboss.org/envers/docs/

from mamute.

matheusmessora avatar matheusmessora commented on August 12, 2024

I've created a branch with the Envers implemented.
https://github.com/matheusmessora/mamute/commits/issue8

Could you please check if this is a start for this issue?
We can fine tune the audit. Now it's creating tables like Users_AUD, Answers_AUD, *_AUD
I don't know if we can stick with this suffix.

TODO: I added the hibernate.hbm2ddl.auto in SessionFactoryCreator just to hibernate create the audit tables. Must think in a solution for that. Maybe the property must be update only.

from mamute.

csokol avatar csokol commented on August 12, 2024

I think that envers its overkill.

I think that it makes sense to store versions only of answers, questions
and comments. Since we already handle answer/question versioning manually,
we dont need envers for that. Maybe we could use envers only for comment
versioning, but I am not sure is needed.
Em 07/05/2014 22:08, "Matheus Messora" [email protected] escreveu:

I've created a branch with the Envers implemented.
https://github.com/matheusmessora/mamute/commits/issue8

Could you please check if this is a start for this issue?
We can fine tune the audit. Now it's creating tables like Users_AUD,
Answers_AUD, *_AUD
I don't know if we can stick with this suffix.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-42503424
.

from mamute.

matheusmessora avatar matheusmessora commented on August 12, 2024

So the point is change the AnswerInformation/QuestionInformation to persist IP of the currentUser, am I right? And create CommentInformation to persist in the same way.

from mamute.

csokol avatar csokol commented on August 12, 2024

I think that's the idea (if someone disagree express yourself now!)

Chico Sokol

On Wed, May 7, 2014 at 11:21 PM, Matheus Messora
[email protected]:

So the point is change the AnswerInformation/QuestionInformation to
persist IP of the currentUser, am I right? And create CommentInformation to
persist in the same way.


Reply to this email directly or view it on GitHubhttps://github.com//issues/8#issuecomment-42507166
.

from mamute.

leocwolter avatar leocwolter commented on August 12, 2024

Yeah, that's the idea !

from mamute.

xdarklight avatar xdarklight commented on August 12, 2024

Is this still needed?
There's org.mamute.util.UserLogger which logs every action to the logfile (including username and IP address)

from mamute.

felipeweb avatar felipeweb commented on August 12, 2024

i agree with @xdarklight. what do you think @csokol @leocwolter ?

from mamute.

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.