blaze-persistence
blaze-persistence copied to clipboard
Rich Criteria API for JPA providers
Hi, I am using blazebit 1.6.14. As reported in "Q&A" [(https://github.com/Blazebit/blaze-persistence/discussions/2005)] it looks like SubqueryBuilder.end() does not work, because "the subqueryStartMarker in SelectObjectBuilderImpl is never reset to null in com.blazebit.persistence.impl.builder.object.SelectObjectBuilderImpl#onBuilderEnded(com.blazebit.persistence.impl.SubqueryInternalBuilder)",...
Let's say we have such case: ```java @EntityView(Validation.class) public interface ValidationView extends IValidation { @Override @Mapping("this") TimePeriodForValidation getPeriod(); @EntityView(Validation.class) abstract class TimePeriodForValidation extends TimePeriodView { public TimePeriodForValidation( @Mapping("startTime") LocalDateTime startTime,...
The current implementation of `KeysetAwarePageImpl#nextPageable` is: ```java @Override public KeysetPageable nextPageable() { return (KeysetPageable) super.nextPageable(); } ``` This assumes that `super.nextPageable()` always returns a `KeysetPageable`, which is not true. If...
``` Caused by: java.util.NoSuchElementException: No value present at java.base/java.util.Optional.get(Optional.java:143) ~[?:?] at com.blazebit.persistence.spring.data.impl.repository.BlazePersistenceRepositoryFactory.getQueryLookupStrategy(BlazePersistenceRepositoryFactory.java:264) ~[blaze-persistence-integration-spring-data-3.3-1.6.14.jar:1.6.14] at com.blazebit.persistence.spring.data.impl.repository.BlazePersistenceRepositoryFactory.getRepository(BlazePersistenceRepositoryFactory.java:438) ~[blaze-persistence-integration-spring-data-3.3-1.6.14.jar:1.6.14] at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$4(RepositoryFactoryBeanSupport.java:350) ~[spring-data-commons-3.4.0.jar:3.4.0] at org.springframework.data.util.Lazy.getNullable(Lazy.java:135) ~[spring-data-commons-3.4.0.jar:3.4.0] at org.springframework.data.util.Lazy.get(Lazy.java:113) ~[spring-data-commons-3.4.0.jar:3.4.0] at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:356) ~[spring-data-commons-3.4.0.jar:3.4.0] at com.blazebit.persistence.spring.data.impl.repository.BlazePersistenceRepositoryFactoryBean.afterPropertiesSet(BlazePersistenceRepositoryFactoryBean.java:108)...
To make it easier for newcomers, improve our CI times and also make the lives of the core Blaze-Persistence developers easier, version 2.0 will drop support for old and unsupported...
## Description ## Related Issue Fixes #1982 ## Motivation and Context
I would like to seek clarification regarding the behavior of implicit joins when using Hibernate's `@SoftDelete` annotation in combination with a `@ManyToOne` relationship, particularly when the related entity is soft-deleted....
### Description If we have a paginated query that uses `DISTINCT`, we fail with: **Cannot paginate a DISTINCT query** The check for this is: ```java if (selectManager.isDistinct()) { throw new...
### Description Using the criteria builder with a whereExists and combination of where like, and conditionally a 'whereOr' breaks when the like condition happens first. An exception is thrown with...
I've run into an exception when saving an Entity View that contains a OneToMany mapping. The exception only occurs when I'm using the blaze-persistence-entity-view-processor-jakarta annotation processor. If I don't use...