Code Monkey home page Code Monkey logo

spring-boot-jpa-data-rest-soft-delete's Issues

Overriding final method.

public class CustomJpaRepositoryFactoryBean<T extends JpaRepository<S, ID>, S, ID extends Serializable> extends JpaRepositoryFactoryBean<T, S, ID> {

@OverRide
@SuppressWarnings("unchecked")
protected Object getTargetRepository(RepositoryInformation information) {
return new SoftDeletesRepositoryImpl<T, ID>((Class) information.getDomainType(), entityManager);
}


getTargetRepository(org.springframework.data.repository.core.RepositoryInformation) in CustomJpaRepositoryFactoryBean cannot override getTargetRepository(org.springframework.data.repository.core.RepositoryInformation) in org.springframework.data.jpa.repository.support.JpaRepositoryFactory
overridden method is final

How can it work at all?

Some sugestions

Hey, thanks for this great project!
I would like to give some ideas... I am new to spring so I hardly will be able to make a PR to include it any time soon.

  1. Custom names for soft delete columns. Some may prefer snake case.
  2. How about to strip the project in a starter having the basic classes and a sample. It would be helpful in an eventual update and as tutorial.
  3. Mysql databases have the possibility to set a on update CURRENT_TIMESTAMP option. Maybe the sql could have it just to make sure the row would have the updatedOn column with the right value if updated from outside.

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.