Giter VIP home page Giter VIP logo

study-envers's Introduction

study-envers

for learning of envers

study-envers's People

Contributors

namhokim avatar

Watchers

 avatar

study-envers's Issues

데이터 삭제가 발생시 마지막 데이터 저장 설정에 대한 확인

가설

  • Kotlin에서는 Null safety에 대한 지원으로 Nullable 타입과 NotNull 타입을 구분한다.
  • 하지만 Java에서는 구별하지 않기 때문에 삭제가 발생한 데이터에 대하여 RevisionRepository 인터페이스를 통해 이력 정보를 획득시 NullPointerException가 발생할 가능성이 있다.

확인

  • 간단하게 메모를 하는 유스케이스로 데이터 추가, 수정, 삭제 후 RevisionRepository 인터페이스의 findRevisions 메서드를 통해 Revision 정보를 읽어오도록 수행한다.
  • NPE가 발생하는지 확인을 해볼 수 있다.

조치

  • 만약 문제가 발생한다면 기본적으로 false로 설정된 org.hibernate.envers.store_data_at_delete 프로퍼티를 true로 변경하여 조회시 문제가 발생하지 않도록 설정을 하는 것을 시도할 수 있다.

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.