For spring-data-jpa-datatables:4.3
, how to make DataTablesRepository
to return all entities, ignoring the Hibernate's @Where
annotation?
This is an entity with Hibernate's @Where
annotation:
@Entity
@SQLDelete(sql = "UPDATE vehicle SET deleted_at = NOW() WHERE id = ?")
@Where(clause = "deleted_at IS NULL")
public class Vehicle extends AbstractEntity implements Serializable {...}
And this is a corresponding repository extending spring-data-jpa-datatables's DataTablesRepository
:
@Repository
public interface VehicleDataTableRepository extends DataTablesRepository<Vehicle, Long> {
}