Skip to content

Latest commit

 

History

History
1389 lines (1020 loc) · 75.1 KB

CHANGELOG.md

File metadata and controls

1389 lines (1020 loc) · 75.1 KB

Change log

Changes that happened in releases

1.6.15-SNAPSHOT

New features

None yet

Bug fixes

None yet

Backwards-incompatible changes

None yet

1.6.14

06/11/2024 - Release tag Resolved issues

New features

None yet

Bug fixes

  • Fix Hibernate ORM 6 integration issue with element collections containing embeddables

Backwards-incompatible changes

None yet

1.6.13

04/11/2024 - Release tag Resolved issues

New features

  • Add parameter and JSON path support for JSON_GET() function

Bug fixes

  • Fix integration issues with Hibernate ORM 6.6 and Quarkus 3

Backwards-incompatible changes

None yet

1.6.12

02/08/2024 - Release tag Resolved issues

New features

  • Add support for Spring Data/Boot 3.3
  • Add date_iso, time_iso and timestamp_iso internal functions

Bug fixes

  • Fix bug in collection insert code triggered by Hibernate ORM 6.4.2
  • Fix concurrency issue leading to NPE when concurrently creating entity view updaters
  • Fix CAST_STRING for SQL Server
  • Ensure Spring Jackson integration copies ObjectMapper bean
  • Fix entity view processor generated code for @MappingSingular leading to compilation error
  • Fix MULTISET issues with temporal BasicUserType

Backwards-incompatible changes

None yet

1.6.11

10/01/2024 - Release tag Resolved issues

New features

  • Special case mappings with limit of 1 to use = instead of IN predicate
  • Added support for extended GraphlQL types, for example support DateTime (please read Backwards-incompatible changes below )

Bug fixes

  • Fix over-fetching of entity view data with dynamic fetches
  • Fix Spring 6.1 compatibility
  • Fix Hibernate 6.4.0.Final compatibility
  • Disallow repository sorting by anything other than entity or entity view attribute paths

Backwards-incompatible changes

  • If you use the GraphQL integration and you are loading the graphql-java-extended-scalars, you might need to migrate your LocalDataTime EntityViews to OffsetDateTime. Dates will no longer be represented as String in the GraphQl-Schema, but as DateTime.

1.6.10

12/11/2023 - Release tag Resolved issues

New features

  • Support JDK 21
  • Add CockroachDB function registrations
  • Support Hibernate 6.3 and 6.4
  • Special case limit 1 in correlation builders to support old MySQL and MariaDB versions

Bug fixes

  • Fix parsing error for entity view limit mapping
  • Fix dropping of embeddable group by expression when nested property has same name as parent property
  • Fix SQL generation for lateral subqueries when correlated path has @Where predicate
  • Fix ConcurrentModificationException during metamodel determination for special Hibernate Envers mappings
  • Clear EntityViewManager static fields in entity view implementations to avoid possible memory leak
  • Ignore @Any mapped attributes in enum type scanning
  • Fix NPE caused by wrong order by expression during criteria builder copying
  • Workaround Hibernate 6 returning null java type for enum parameters
  • Add Entity View type test values for more Java types

Backwards-incompatible changes

None yet

1.6.9

15/06/2023 - Release tag Resolved issues

New features

  • Add Netflix DGS GraphQL integration that supports mutations
  • Add MariaDBDbmsDialect for MariaDB support
  • Add support for Hibernate 6.2.5+
  • Add support for Quarkus 3.1
  • Add support for Spring Framework 6 / Boot 3.1 as well as Spring Data/WebMvc/WebFlux/HATEOAS 3.1

Bug fixes

  • Use empty escape character for like predicates when noEscape is used
  • Fix issue with negative numeric literals in inLiterals and notInLiterals APIs
  • Fix GraphQL over-fetching issue
  • Fix issue with unions in GraphQL selection set
  • Fix issue with EMBEDDING_VIEW macro when used in subquery within batch loaded mapping
  • Fix issue with resolving function return types in Hibernate 6 integration
  • Fix fetch determination for relay node types
  • Fix entity binding with column equivalent attributes
  • Fix problem with query copying of paths that refer to select aliases, happening mostly in paginated SUBSELECT entity view scenarios
  • Fix type validation for MappingIndex
  • Fix syntax error when using multiple likes with escape
  • Fix parsing of path expressions that coincide with entity names

Backwards-incompatible changes

  • The GraphQL integration bumped the graphql-java version to 17.4 and had to do some signature changes to fully support union types
  • Default for GraphQLEntityViewSupportFactory.setDefineDedicatedRelayNodeTypes changed to false to reuse object types for relay edge
  • The hibernate-6.0 integration module was replaced with the hibernate-6.2 integration module because only version 6.2 is maintained anymore
  • Expression parsing defaults to paths instead of entity literals. Uses of eqExpression("MyEntity") should be changed to eqLiteral(MyEntity.class)

1.6.8

21/11/2022 - Release tag Resolved issues

New features

  • Support exposing additional (computed) GraphQL fields in Entity Views and support ignoring types and fields
  • Support marking GraphQL fields and field types as non-null in Entity Views
  • Add ManagedViewType#renderSecondaryMappings implementation that accepts FromBuilder
  • Introduce PredicateBuilder, PredicateAndBuilder and PredicateOrBuilder as abstraction for WHERE, HAVING and ON clauses
  • Respect common annotations on EntityViews for GraphQL type generations
  • Introduce @EnableBlazeRepositories annotation for multi-repository support
  • Reduce need for HibernateVersionProvider by scanning for MANIFEST.MF to determine Hibernate version

Bug fixes

  • Switch to default Spring Repository implementation when a repository with an id class is used
  • Make sure Pageable.unpaged() works properly in Spring Data integration
  • Update to the latest Spring Data bug fix versions (1.11.23, 2.0.14, 2.1.21, 2.2.13, 2.3.9, 2.4.15, 2.5.12, 2.6.6) for testing
  • Rename some annotation processor generated fields to avoid collision with application specific entity view attribute names
  • Make sure that singular collection typed attributes are mapped as list in GraphQL
  • Rewrite entity view annotation processor to avoid concurrency issues
  • Fix CTE inlining in set operands
  • Fix custom entity view class bytecode analysis when using 2 stack slot types
  • Applying EntityViewSetting to custom path should have inner join semantics
  • Apply filters for aggregate mappings as HAVING predicates
  • Treat entity view mapping parameters always as singular in annotation processor
  • Import and properly render parameterized type arguments in entity view annotation processor
  • Fix entity view by id remove error on cascade delete of one-to-one mapped by association
  • Fix dynamic fetch support for MULTISET fetched mappings
  • Fix annotation processor code generation issue with type use annotations on primitive types
  • Fix NPE on cascade delete of unmapped null one-to-one association
  • Throw OptimisticLockException if view can't be found for entity view lifecycle listener
  • Always treat flat views for embeddable types as updates to support partial flushing
  • Fix QUERY flushing issues with MappingSingular attributes
  • Fix support for entity functions in DML statements
  • Fix deployment problems with Hibernate 6 integration on Wildfly 27

Backwards-incompatible changes

None yet

1.6.7

28/08/2022 - Release tag Resolved issues

New features

  • Add integration for Hibernate 6 supporting versions starting with 6.1.1.Final
  • Support for Java 16, 17, 18 and 19 EA
  • Support CTE's for left-nested set queries
  • Add separate integration modules for Spring Data 2.5, 2.6 and 2.7

Bug fixes

  • Fix returning entities with embeddables from subqueries in the FROM / JOIN clause in Querydsl
  • Fix CTE rendering issues in Querydsl integration
  • Support joins in queries with multiple FROM nodes in Querydsl
  • Fix compatibility issues with Spring Data 2.3 series due to newly added methods in 2.3.1
  • Fix compatibility issues with Spring Data 2.5 series due to newly added methods

Backwards-incompatible changes

  • Drop the default ',' as second argument (separator_expression) for listagg
  • Minor class signature changes in JPQLNextQuery and JPQLNextQueryFactory in the Querydsl integration. You will probably need to recompile your code after the upgrade.

1.6.6

29/01/2022 - Release tag Resolved issues

New features

  • Support Spring Boot/Data 2.6

Bug fixes

  • Fix issues in Quarkus integration preventing the use of the Hibernate 5.6 integration in native mode
  • Fix boot issue when model contains an association to an entity type that has an id class

Backwards-incompatible changes

None

1.6.5

19/01/2022 - Release tag Resolved issues

New features

  • Fire CDI event for CriteriaBuilderConfiguration on boot also in Quarkus integration
  • Create custom integrations for Hibernate 5.5 and 5.6 to avoid confusion

Bug fixes

  • Fix dev UI support for Quarkus 2
  • Fix support for non-public @PostLoad methods in entity view annotation processor
  • Fix lookup of constantified attributes in functional dependency analysis
  • Retain configurations added through MetadataContributor in Quarkus integration

Backwards-incompatible changes

  • Throw exception if non-streaming capable object builder is used for streaming
  • Replace blaze-persistence-integration-hibernate-5.4-jakarta with blaze-persistence-integration-hibernate-5.5-jakarta

1.6.4

27/12/2021 - Release tag Resolved issues

New features

  • Create artifacts for Jakarta Persistence
  • Add WITHIN GROUP syntax support for ordered set-aggregate functions
  • Add SQL standard compliant LISTAGG ordered set-aggregate function as alternative to GROUP_CONCAT
  • Add PERCENTILE_CONT, PERCENTILE_DISC and MODE ordered set-aggregate functions
  • Add JPA Criteria support for aggregate FILTER clause, window functions and ordered set aggregate functions
  • Fire EntityViewConfiguration as event in Quarkus extension boot like in the CDI integration to allow customization
  • Add JSONB integration for deserializing entity views
  • Add Spring SPQR integration and example application
  • Add examples for SPQR, DGS and MicroProfile GraphQL showcasing how GraphQL mutations can be used

Bug fixes

  • Return proper totalSize on PagedList also if the requested page is empty
  • Get rid of a startup warning with Quarkus 2.4.0+
  • Fix typo in QueryDSL GROUP_CONCAT rendering leading to a syntax error
  • Add getById implementation as needed by Spring Data 2.5 to the integration
  • Ensure stream/iteration processing of results works with entity views containing no collections
  • Fix support for flushing flat view collections with read-only declared and updatable subview types
  • Ensure pending inserts for tables targeted by foreign keys by custom insert/update DML are flushed
  • Fix JSON serialization for entity views in Quarkus native image

Backwards-incompatible changes

  • Properly implement the getOne semantics to return a reference instead of querying an instance
  • Split JAX-RS integration into JAX-RS for Jackson and JAX-RS for JSONB integrations

1.6.3

10/10/2021 - Release tag Resolved issues

New features

  • Introduce type filter pattern for GraphQLEntityViewSupportFactory
  • Infer nullability in the GraphQL schema from the entity view mapping expressions
  • Implement MULTISET support for types Enum, Locale, Currency, Class, Duration, LocalTime, OffsetTime, URL and UUID

Bug fixes

  • Fix issues with wrongly marking all attributes as non-null in the GraphQL schema
  • Fix JPA Criteria joins rendering over embeddables
  • Fix correlation predicate root type in validation
  • Allow usage of TRUE and FALSE as path continuation tokens
  • Fix coalescing add/remove operations to avoid constraint violation if new object should be persisted
  • Fix entity view pagination issue with joined collection and subselect fetching
  • Implement support for subselect fetching when main query builder has LIMIT/OFFSET and/or ORDER BY clause
  • Fix compatibility with Quarkus 2.1+ by registering ValuesEntity in deployment integration
  • Fix checking more uses of MULTISET fetching for proper type support
  • Consider map key for updatable flat view identity when doing MULTISET fetching
  • Ensure mapping index expressions are properly type validated
  • Fix parsing of LIKE predicate with parameter in ESCAPE
  • Fix literal parsing issues with a single backslash to match the requirements of the JPA spec
  • Fix rendering of literals in JPA Criteria and introduce configuration option to control value rendering
  • Fix base URI determination in Spring HATEOAS integration to be compatible with Spring HATEOAS 1.3.4
  • Make sure LIMIT/OFFSET is respected when generating a count query
  • Fix concurrency issue in entity view annotation processor leading to strange errors
  • Fix setter determination in entity views
  • Fix issues with non-PK single valued association id access optimization leading to joins

Backwards-incompatible changes

  • Automatically escape the LIKE pattern on PostgreSQL if no escape character is given, because it uses a backslash as default escape character

1.6.2

05/09/2021 - Release tag Resolved issues

New features

  • Introduction of the CriteriaBuilderConfigurationContributor SPI which allows third party libraries to extend the default CriteriaBuilderConfiguration.
  • Add support for Spring Boot/Data 2.5
  • Get rid of unnecessary correlation joins when entity view fetches are used
  • Support plural attribute key/index access in @Limit(order = "") expression
  • Automatically fetch attributes necessary for attribute sorters/filters
  • Ensure graphql-java 9.2 - 16.2 work properly and add a Netflix DGS sample application
  • Add support for SmallRye GraphQL in the GraphQL integration
  • Add support for Netflix DGS @DgsData and MicroProfile GraphQL annotations
  • Add support for chunk-processing via Query#getResultStream

Bug fixes

  • Fix support for Java 8 type temporal literals
  • Fix issues with persisting updatable non-PK subview mapping referring to PK-Id view
  • Fix issues with entity-view annotation processor and type use annotations
  • Get rid of static dialect references to avoid eager initialization causing issues with native compilation
  • Make entity view subview ids non-null in the GraphQL model
  • Rely on optionally provided ObjectMapper in Spring integrations to avoid missing module issues

Backwards-incompatible changes

None yet

1.6.1

08/07/2021 - Release tag Resolved issues

New features

  • Add support for incremental compilation for entity-view annotation processor

Bug fixes

  • Fix missing reflection registrations in Quarkus native image processor
  • Fix NPE when flushing updatable entity view with plural mapping for element collection using embeddable types
  • Fix aliasing issues with joinOnSubquery variants on databases that don't support column aliasing at the table alias site
  • Fix some issue and improve support for running on the module path
  • Fix issues with using EntityViewSetting.fetch on correlated attributes
  • Fix wrong use of entity view id value accessor during deserialization of non-root entity view

Backwards-incompatible changes

None yet

1.6.0

24/04/2021 - Release tag Resolved issues

New features

None yet

Bug fixes

  • Log warning when Blaze-Persistence is used in Quarkus application without persistence units instead of throwing an exception
  • Fix remove by owner id of map attributes to use mapping instead of attribute name
  • Add reflection information about entity view methods for Quarkus to fix native image issues
  • Remove version string related Hibernate feature detection causing issues in native image and uber jars
  • Ignore GraphQL meta field __typename in entity view integration
  • Fix entity view annotation processor generation of casts for attributes containing annotations
  • Fix Spring WebMvc Jackson integration for Spring Boot 2.4.3
  • Coalesce inverse collection operations to avoid entity not found issues due to remove + update
  • Fix nested join correlations problems due to join base missing
  • Fix set operation query wrapping issues leading to parameters not being bound
  • Fix set operand wrapping for PostgreSQL
  • Prefer abstract class method over interface method in metamodel if attribute mappings are equal
  • Validate that entity type for creatable entity view is non-abstract
  • Fix GraphQL integration issue when encountering enum types multiple times
  • Fix NumberFormatException in OracleDbmsLimitHandler for set operation queries with limit and offset
  • Properly handle Optional in entity view annotation processor
  • Retain entity view kind when converting entity view if possible
  • Improve dialect detection for MariaDB dialects
  • Workaround Hibernate proxy field access bug for non-pk relations
  • Fix issues with de-serializing of singular entity view attributes that use a collection type
  • Add Cockroach DBMS detection and a DbmsDialect implementation
  • Fix various issues with type resolving paths that match entity names
  • Fix issues with remove view by id when element type of cascaded collection uses embedded id

Backwards-incompatible changes

None yet

1.6.0-Alpha2

17/01/2021 - Release tag Resolved issues

New features

  • Implement emulation for temporal literals through functions also for Java 8 types
  • Support alternative constructors for subquery providers
  • Change EntityViewSettingProcessor API to allow subtyped EntityViewSetting to be returned
  • Upgrade Javassist to 3.27.0-GA
  • Support Spring Boot and Data 2.4 along with Spring Framework 5.3
  • Support for Java 16 EA
  • Support for converting entities to entity views
  • Add support for GROUPING SETS, ROLLUP and CUBE summarizations and GROUPING function

Bug fixes

  • Fix generation of implicit group by expressions that contain parameters
  • Fix generation of implicit group by expressions when using MySQL
  • Allow overriding the ObjectMapper used for deserializing entity views in the JAX-RS integration
  • Fix issues with query plan caching that manifest when using equal queries except for the set operation type
  • Support aliases in CTE binds
  • Always respect filterNulls in collection and map accumulators
  • Avoid transforming SIZE to COUNT when implicit group by would fail
  • Fix for implicit join in lateral join correlation path array expression index
  • Fix issues with flushing of embeddables/flat views for entity views retrieved by EntityViewManager.getReference()
  • Fix issues with tuple query with single scalar select returning same value for each row
  • Support constant concatenation in optional parameter detection for entity view annotation processor
  • Fix issues with EntityViewManager.getEntityReference when used with embedded id entity types
  • Reorder explicit join nodes into the appropriate table references according to their dependencies
  • Fix TREAT issues regarding nested expression/predicate uses and wrong omitting of TREAT constraint for superclass attribute access

Backwards-incompatible changes

None yet

1.6.0-Alpha1

22/10/2020 - Release tag Resolved issues

New features

  • Implement support for configuring sorting and order for multi collection entity view mappings
  • Optimize FullQueryBuilder.getCountQuery() to use a subquery to determine distinct tuple counts instead of distinct count emulation
  • Add support for secondary entity view roots
  • Improve error message when Hibernate version resolving fails especially due to uber-JAR deployments

Bug fixes

  • Fix Hibernate 5.4.19+ integration issue
  • Fix boot exception when using Hibernate @Where on entity level
  • Properly set fromClassExplicitlySet flag when using the subquery from(String correlationPath) methods
  • Fix concurrency issue during EntityViewUpdaterImpl initialization which can lead to a NPE
  • Fix NPE during flush for views that were converted with ConvertOption.CREATE_NEW and contain an updatable inverse mapping
  • Fix issues with using Javassist default class pool which leads to issues when deploying multiple WARs
  • Fix NPE when no specification is given and keyset page is not applied for PartTreeQuery

Backwards-incompatible changes

None yet

1.5.1

14/09/2020 - Release tag Resolved issues

New features

None

Bug fixes

  • Fix Hibernate 5.4.19+ integration issue

Backwards-incompatible changes

None

1.5.0

03/09/2020 - Release tag Resolved issues

New features

  • Support joins through DBMS USING clause in DELETE and UPDATE queries
  • Emulation of lateral entity joins for RDBMS that don't support lateral joins a concept
  • Workaround Hibernate issue regarding IN subqueries using composite id entity aliases HHH-14156
  • Implement support for JSON functions to retrieve and alter values of a JSON column
  • Implement support for specifying an index mapping for List and Map entity attributes via @MappingIndex
  • Official support for Java 15

Bug fixes

  • Fix issues with entity view validation errors when using singular collection attributes
  • Fix invalid use of Hibernate query plan cache when participating queries use LIMIT or OFFSET
  • Fix invalid merging of RowSelection in HibernateExtendedQuerySupport
  • Fix issue when saving creatable entity view with null version
  • Fix implicit group by generation when encountering window functions
  • Fix basic JOIN fetched correlation failure due to interleaving builders
  • Fix module-info configuration for Hibernate integrations
  • Fix issues with type validation in entity views when using entity literal array expressions
  • Report more appropriate errors instead of throwing NPEs when encountering invalid arguments
  • Fix issue with type validation in entity literal array expression of entity view mapping
  • Fix issue with type validation in array predicate expression of entity view mapping
  • Fix @Limit handling for path expressions other than entity literals
  • Fix generation of invalid code in entity view annotation processor for arrays
  • Fix generation of invalid runtime code for entity view proxy when using primitive arrays
  • Ignore query parameter attributes in MULTISET basic type compatibility check
  • Fix keyset extraction for pagination queries with id query inlining and no explicit select items
  • Fix issues with @EntityViewId from JAX-RS path parameter conversion with Resteasy
  • Reorder joins if necessary due to parent dependencies
  • Respect DISTINCT flag in count queries and implement counting of complex queries
  • Fix support for pagination when grouping by entity alias
  • Fix implicit GROUP BY generation for EXISTS subqueries

Backwards-incompatible changes

  • Change the result type of joinEntitySubquery methods and fromEntitySubquery to a more general type for supporting the emulation for RDBMS that don't support lateral joins

1.5.0-Alpha5

08/06/2020 - Release tag Resolved issues

New features

None

Bug fixes

  • False sharing of query plan for DML with RETURNING clause
  • Fix wrong classfile version for MR-JAR contents

Backwards-incompatible changes

None

1.5.0-Alpha4

30/05/2020 - Release tag Resolved issues

New features

None

Bug fixes

None

Backwards-incompatible changes

None

1.5.0-Alpha3

24/05/2020 - Release tag Resolved issues

New features

  • Spring HATEOAS integration for generation of pagination links with keyset information
  • Add support for custom entity view class implementations which adds support for Java 14 Records
  • Support for Spring Boot 2.3 and Spring Data 2.3

Bug fixes

  • Fix issues with the FILTER clause when using entity views
  • Fix deserializing the id from the JSON payload for creatable only entity views
  • Fix support for dynamic projections with entity views

Backwards-incompatible changes

  • Rename of the Maven artifact blaze-persistence-querydsl-expressions to blaze-persistence-integration-querydsl-expressions for consistency

1.5.0-Alpha2

14/05/2020 - Release tag Resolved issues

New features

  • Introduce a way to do global mapping parameter registration
  • Introduce entity view builders
  • Support Spring PathVariable and JAX-RS PathParam in the integrations for updatable entity views
  • Introduce annotation processor for entity view implementations, static entity view metamodels and entity view builders
  • Add support for @Self injection into entity view constructors to allow safe access to entity view state
  • Add support for @PostLoad entity view lifecycle listeners
  • Support controlling whether empty flat views or null should be produced via @EmptyFlatViewCreation
  • Support type-safe usage of filters and sorters based on static entity view metamodel
  • Support multiple attribute filter activations per attribute
  • Validate expression in @EntityViewInheritanceMapping
  • Fail validation on startup when formula is used in CTE entity
  • Throw validation error when encountering entity view annotations on setter
  • Add support for bounded counting in pagination i.e. counting up to a specific value
  • Rewrite temporal literals to parameters for hibernate
  • Add @Limit annotation for entity views to limit elements of collections and correlations
  • Support automatic translation of implicit joins for DELETE and UPDATE statements
  • Add Quarkus integration with support for native compilation
  • Fix rendering of extended EXISTS predicate for performance
  • Support spring-data dynamic projections for entity views
  • Improve pagination id-query performance by omitting unnecessary group by
  • QueryDSL 4 integration module

Bug fixes

  • Missing flushes for attributes that were changed in pre-update entity view listeners
  • Render enum literal as parameter if compared with attribute having Hibernate non-EnhancedUserType
  • Fix NoSuchMethodException issue with entity view inheritance where superclass has parameters but subclass has none
  • Fix erroneous component type handling in HibernateJpaProvider
  • Fix implicit joining issue with deep paths in TREAT expression
  • Fix issues with CTE inlining when using collection DML API
  • Only expose Serializable EntityViewManager wrapper in special methods or callbacks
  • Support @PostCreate and other lifecycle methods with default and even private visibility
  • Support @ViewFilter inheritance
  • Fix collection deserialization issues with Jackson
  • Allow to use @JsonIgnore for the id property of an entity view
  • Properly validate the condition expression of CASE expressions in entity views
  • Better support for MySQL subquery LIMIT handling in quantified predicates e.g. IN
  • Fix NPE in JpaUtils#expandBindings caused by non-determinism of example attribute resolving
  • Fix concurrency issue that cause class cast exceptions during equality comparisons
  • Fix exceptions when using remove on recording collection with a non-existing element
  • Rework entity view expression prefixing to work regardless of query aliases
  • Fix a method not found error happening in the spring-data 2.2 integration
  • Fix support for updating embeddables in update criteria builder
  • Write core and entity-view documentation about entity array expressions
  • Fix FILTER clause support for aggregate and window functions
  • Fix flushing of dirty state of entity view references
  • Fix sub-builder support for JoinOnBuilder which previously didn't add sub-built predicates to the main conjunct

Backwards-incompatible changes

  • Entity view annotations on entity view setters now lead to a validation error. Please remove entity view annotations from setters
  • AttributeFilterProvider was change in a source incompatible way because it introduced a type variable for the filter value. Subclasses should specify the type or pass through the type variable if the filter value type is like the attribute type
  • SubGraph and thus also EntityViewSetting methods for typed fetching fetch(Attribute) was replaced by fetch(MethodSingularAttribute) and fetch(MethodPluralAttribute) which was probably not used yet anyway
  • The validation of CASE expression might lead to deployment failures due to unsafe expressions or when expression types can't be determined. Enum comparison should be done through the fully qualified name e.g. com.test.MyEnum.MY_KEY

1.5.0-Alpha1

18/03/2020 - Release tag Resolved issues

New features

  • Introduce REPLACE, CHR, CONCAT, BASE64, STRING_JSON_AGG, TO_STRING_JSON, STRING_XML_AGG, TO_STRING_XML and TO_MULTISET functions
  • Introduce MULTISET fetch strategy for entity views
  • Introduce com.blazebit.persistence.BaseUpdateCriteriaBuilder.setNull(String attributeName) to avoid ambiguity for set(String, null)
  • Extend array expression to support a predicate
  • Extend array expression to allow entity type as base expression

Bug fixes

  • Fix null expressions for custom types
  • Fix expanding null binding for embeddable
  • Fix problems with parameters in the select clause when using Hibernate subselect fetching for associations
  • Fix using constructor in polymorphic entity view inheritance structure
  • Fix missing updates of indexed collection elements when clearing and re-adding dirty elements
  • Fix rendering strategy for row value constructor for performance
  • Avoid rendering implicit joins in ON clause to EXISTS subquery if possible
  • Fix contradictory WHERE condition when a node appears in multiple TREAT expressions with different types
  • Fix SELECT correlation when using VIEW_ROOT/EMBEDDING_VIEW in view with custom id view
  • Fix issues with state flushing when using pre-update entity view listeners

Backwards-incompatible changes

None

1.4.1

28/01/2020 - Release tag Resolved issues

New features

  • Allow extraction of CriteriaBuilder for id-query from FullQueryBuilder
  • Allow definition of CTE based on CriteriaBuilder
  • Allow to control embedding of id query into pagination object query and enable by default if DBMS allows it
  • Allow to control embedding of count query into pagination object/id query and enable by default if possible
  • Implement option for inlining CTEs/Subquery in from clause and add lateral join support
  • Use JpqlFunction for NULL literal expressions
  • Use as query separator instead of \n for multi-query statements
  • Use alias for SET clause in updatable entity view generated UPDATE statements to workaround the use of keywords as attribute names
  • Introduce internal JPQL function for rendering of parameters for SELECT statements

Bug fixes

  • Validate that VIEW_ROOT and EMBEDDING_VIEW macros can't be used on SELECT or SUBSELECT fetched correlations when the view type has no @IdMapping
  • Fix null/empty flat view objects when using SELECT or SUBSELECT fetch strategy for a collection correlation
  • Fix uniqueness analysis for single valued association id where the association is part of id class attributes
  • Indexed element collection action optimization fails with IndexOutOfBoundsException
  • Problems with setFirstResult/setMaxResults in subquery when in EXISTS predicate
  • Fix problems with the Spring Data WebMvc integration regarding some auto configuration issues
  • Fix rendering of VALUES clause with ValuesStrategy.SELECT_UNION necessary for MySQL 8.0.19+
  • Support field access for entities as well for VALUES clause usage
  • Fix FULL flushing of collections when elements are removed
  • Fix convertWith support when using convertAttribute on collection view type attributes
  • Support invoking setters of mutable attributes in updatable entity view constructor
  • Implicit alias generation generates alias that is shadowed in child subquery which prevents copying
  • Remove PathExpression resolving for expression cloning to avoid referring to later removed joins in copied queries
  • Fix support for type converters for updatable entity views
  • Fix for implicit parameter collision from query that is used for a subquery in another main query
  • Applying entity-fetch computed collection actions fails because JPA collection elements assumed to be view elements

Backwards-incompatible changes

None

1.4.0

04/01/2020 - Release tag Resolved issues

New features

None

Bug fixes

  • TREAT expression as join basis doesn't work
  • Bytecode analysis fails in application servers
  • Hibernate can't handle when SQL contains PostgreSQL double colon casts
  • Fix entity joins with TREAT basis support

Backwards-incompatible changes

None

1.4.0-Alpha4

29/12/2019 - Release tag Resolved issues

New features

  • Jackson integration for Entity Views to allow deserializing updatable entity views
  • Enable Jackson integration in the newly added JAX-RS integration
  • Enable Jackson integration in Spring WebMvc integration
  • Allow to define fetch graphs for Entity Views
  • Create integration for Spring WebFlux similar to the Spring WebMvc one
  • Add support for non-primary key associations in updatable entity views
  • GraphQL integration for Entity Views with implementation for Relay spec
  • Introduction of Entity View lifecycle listeners
  • Bytecode analysis for creatable entity views regarding persistability validation
  • Introduce possibility to force PaginatedCriteriaBuilder to always use a provided keyset
  • Allow to configure keyset extraction and count query execution through EntityViewSetting
  • Add ISODAYOFWEEK function to produce Monday = 1 ... Sunday = 7 and clarify documentation
  • Official support for Java 13 and 14
  • Add support for enum literals in builder API
  • Allow to flush updatable entity views to entities directly
  • Throw exception when setFirstResult or setMaxResults is used in a CorrelationProvider other than select with batch size 1
  • Allow entity view conversion with fine grained control of attribute subview types
  • Introduce type converters for entity views between Calendar/GregorianCalendar and java.util.Date

Bug fixes

  • Flushing updatable entity view that has a readonly declared entity view type fails when setting creatable subtype
  • JoinOnBuilder.onExpression() doesn't register parameters
  • Flat views without method attributes fail to generate
  • SIZE doesn't work with TREAT expression
  • Updatable entity views inverse mapping fails to flush when parent has embedded id and child has non-association back-reference or non-primary key mapping is used
  • Fix limit rendering in main query if preceded by a returning cte query
  • SELECT fetch mappings should correlate embedding view entity when association has extra join condition e.g. use Hibernate's @Where
  • SELECT and SUBSELECT fetching fail to correctly correlate by embedding view that uses entity view inheritance
  • Synthetic EXISTS subquery for association usage in ON clause doesn't preserve cardinality
  • Make recording collections properly Serializable
  • Properly inherit RANGE clause from WINDOW clause into window functions
  • Fix duplicate sortResolver issues when using Spring Data WebMvc integration with Spring Boot
  • Fix calling post rollback callbacks necessary for proper updatable entity view state resets
  • Fix TREAT on super type too restrictive, should allow subtypes too
  • Fix NPE when accessing entity attributes in @MappingSubquery expression
  • Invalid path expression generated when using SUBSELECT fetching in a JOIN correlated view

Backwards-incompatible changes

  • Rename of the maven artifact blaze-persistence-integration-spring-data-rest to blaze-persistence-integration-spring-data-webmvc

1.4.0-Alpha3

26/10/2019 - Release tag Resolved issues

New features

  • Add support for Spring Boot 2.2 and Spring Data 2.2 through a new integration module
  • Add @Repeatable annotation to @ViewFilter and @AttributeFilter annotations
  • Add support for Spring managed transactions for entity view aware repositories and updatable entity views
  • Implement toString() for entity views showing the id or whole state for flat views
  • Introduce new method EntityViewManager.save() to replace the now deprecated EntityViewManager.update()
  • Performance optimization for group joins that were introduced in Hibernate 5.2
  • Add new orderByAsc/orderByDesc variants with null ordering defaults
  • Add deactivatable strict cascading check for updatable/creatable entity views
  • Add support for FULL JOIN as provided by Hibernate

Bug fixes

  • Entity view generated equality is now based on the entity inheritance top type
  • Properly support getters/setters with protected or default visibility
  • Add support for natural id-based join tables
  • Fix a StackOverflowException exception appearing in a special unbounded type variable scenario
  • Fix a window function parsing issue that appears when using multiple partitions
  • A parser regression regarding top-level treat expressions was fixed
  • Fix problems during flushing of a declared a read-only flat view attribute with updatable subtype
  • Resolve problems with multi-query repository methods by using Spring managed transactions and remove custom SharedEntityManager
  • Show proper error message for creatable/updatable views that don't have an @IdMapping
  • Properly implement invocation of @PostCreate annotated default method for Java 9+
  • Avoid generating a default from clause alias that could clash with an entity name
  • Fix startup problems for Hibernate 5.4+ with associations that use @NotFound(action = NotFoundAction.IGNORE)
  • Fix problems with MultipleSubqueryInitiator on RestrictionBuilder that always reported a build was not closed
  • Fix issues with EntityViewManager.remove() due to Hibernate returning scalar results rather than an Object[]

Backwards-incompatible changes

  • The name attribute of the EntityView annotation was removed because it had no purpose and only lead to problems
  • The com.blazebit.persistence.parser.expression.ExpressionCache interface changed. For details see #857

1.4.0-Alpha2

17/09/2019 - Release tag Resolved issues

New features

  • Introduce support for adding whole predicates to predicate builders via whereExpression/whereExpressionSubqueries etc.
  • Add support for subquery expression in the ON clause
  • Introduce new comparison methods in predicate builders to allow making use of literal rendering in a type safe way
  • Introduce new *-jar artifacts for modules to allow using Blaze-Persistence with older JVMs/ASM versions
  • Shade ANTLR into parser to avoid conflicts
  • Update ANTLR to 4.7.2
  • Rework the parser grammar for better performance and to get rid of semantic predicates
  • Introduce possibility to check if CTE type has been defined
  • Add DeltaSpike 1.9 and Java 12 build support
  • Introduce method to allow controlling the amount of extracted keyset objects
  • Pass optional parameters to entity view CTEProvider
  • Add support for window functions and named windows in builder and expressions via e.g. SUM(x) OVER(PARTITION BY y)
  • Improve OpenJPA support
  • Add support for MySQL 8
  • Move ConfigurationProperties classes to API artifacts
  • Add support for view property sorting in Spring Data
  • Complete the set of date extraction, date diff and date arithmetic functions
  • Add ANY as alias for the OR_AGG function
  • Add support for using entity views as parameters in Spring Data repositories
  • Add support for boolean wrapper type when using is method prefix
  • Add support for Date and Calendar to Instant conversion for entity views

Bug fixes

  • Fix Hibernate Envers issues with JPA Criteria implementation
  • Fix a NPE happening due to doing a manual select in an exists subquery that joins associations
  • Avoid a NPE happening when trying to render a parameter as literal that has no literal representation
  • Fix wrong instantiation of inheritance base type when null is expected
  • Fix an issue with using a sub-association as correlation basis
  • Don't treat creatable or updatable subtypes for mutable attributes as readonly
  • Prevent cache trashing object builder cache when macros don't support caching

Backwards-incompatible changes

  • Dropped module classified artifacts in favor of adding module-info.class file to standard artifacts which now requires e.g. Jandex 2.0.4.Final or later

1.4.0-Alpha1

29/05/2019 - Release tag Resolved issues

New features

  • Added startup check for accidental polymorphic CTEs
  • Add new API that allows to specify a collection valued parameter for an IN predicate
  • Upgrade Javassist to 3.25.0-GA

Bug fixes

  • Fix support for de-referencing map key entity type expressions
  • Fix support for map key subviews
  • Fix for absolute paths referring to dependent joins in ON clauses
  • Attributes having the same name as a correlation basis alias aren't prefixed in the correlation expression
  • Allow use of TREAT operator in subview mapping
  • Fix invalid reduction of collection cardinality due to non-consideration of the parent tuple identity
  • Support correlating TREAT expression
  • Support using CTE entity type for VALUES clause in INSERT-SELECT
  • Fix integration issue in HibernateJpqlFunctionAdapter with Hibernate 5.3
  • Fix issues in ConstantifiedJoinNodeAttributeCollector happening when paginating while using an embeddable in the WHERE clause
  • Don't ignore offset query parameter in spring data rest integration
  • Deterministically resolve EntityManager in spring data integration
  • Make sure mapping parameters are copied during entity view conversion
  • Fix query flushing of inverse collections in updatable entity views
  • Initialize non-mutable attributes with proper defaults in entity views created via EntityViewManager.create()
  • Fix empty correlations due to wrong view index calculation in subselect correlation provider when using EMBEDDING_VIEW
  • Reuse correlated attributes during EXISTS subquery rewrite for join ON clause predicates
  • Handle new exception thrown by Javassist 3.24.0-GA when class definition fails
  • Fix support for correlation that don't make use of the correlation key
  • Make sure nested empty collections work properly
  • Clause dependencies are wrongly propagated leading to cardinality mandatory joins not being rendered when copying queries

Backwards-incompatible changes

None

1.3.2

26/02/2019 - Release tag Resolved issues

New features

None

Bug fixes

  • Fix issues with DeltaSpike Data integration and EclipseLink + DB2
  • NPE during view attribute accessor resolving when lacking an explicit version mapping
  • Workaround EclipseLink's wrong null precedence handling on platforms that don't support it
  • Select correlation wrongly tries to load data based on null correlation basis
  • Select alias expressions should be resolved when copying a query or when switching the select clause
  • Non-entity-view deltaspike repository method wrongly tries to resolve entity class via view class
  • Repository method findAll(int start, int max) for entity type doesn't properly paginate
  • Replacing normal collection with recording during flush fails because of invalid setParent call due to ClearAction
  • Readonly parents collection isn't copied when replacing the attribute values
  • Updatable plural attribute doesn't allow updatable/creatable subtypes when missing the setter

Backwards-incompatible changes

None

1.3.1

15/01/2019 - Release tag Resolved issues

New features

None

Bug fixes

  • Don't consider re-adds to a set to be adds
  • Include constantified expression predicates in pagination object query
  • Updatable entity view containing deeply nested collection that is empty wrongly removes tuples from result
  • Nested join correlations results in exception due to invalid join base alias being used bug entity-view
  • Empty flat view is added to non-indexed collection invalidly
  • Dirty updatable flat views contained in maps aren't flushed if re-added
  • Dirty state is not properly copied when converting between view types
  • Invalid handling of discriminator predicate in collection update query generation
  • Basic element types of collection bindings are being expanded
  • State field wrongly sized for updatable entity views with inheritance leads to IOOBE
  • Functional dependency analysis for pagination doesn't treat partial constantified many to one joins like single value id paths
  • Implicit group by adds nested correlated subquery expression to grandfather query
  • Joining embeddable on correlated root with JPA Criteria API produces invalid JPQL
  • Multi-Column attribute where one column is a formula produces a startup exception

Backwards-incompatible changes

None

1.3.0

23/11/2018 - Release tag Resolved issues

New features

  • Support for binding embeddables directly to embeddable path expressions in CTEs
  • Support for binding associations that are part of an entities identifier
  • Support for binding associations mapped by compound or foreign keys
  • Using a comparator with List and Collection types in entity views will sort the collection after load
  • Add option to force deduplication of elements in non-sets to @CollectionMapping
  • Support plain VALUES clause with embeddable and most basic types
  • Support for binding embeddable parameters in CTEs, insert and update queries
  • Properly implement dirty state transfer when converting one entity view to another
  • Added validation for equals/hashCode implementations of JPA managed types that are used within entity views which can be disabled with the property com.blazebit.persistence.view.managed_type_validation_disabled
  • Add support for DeltaSpike Data 1.9
  • Make use of Collection DML API when using the QUERY flush strategy in updatable entity views
  • Automatic embeddable splitting within GROUP BY clause to avoid Hibernate bugs
  • Support for entity view attribute filters and sorters on attributes of inheritance subtypes
  • Introduced new method EntityViewManager.getEntityReference() to get an entity reference by an entity view object
  • Allow to specify example attribute for VALUES clause for exact SQL types
  • Implemented creatability validation for creatable entity views
  • Implemented SET_NULL inverse remove strategy validation for updatable entity views
  • Add updatable entity view support for inverse collections without a mapped by i.e. explicit join columns
  • Rewrtite implicit joins in ON clause automatically to subqueries
  • Add support for multiple non-cascading parent objects for updatable entity views
  • Add support for correlated inheritance mappings and correlations in inheritance subtypes

Bug fixes

  • Using non-bags in entity views will now properly deduplicate elements
  • Fix support for exists repository methods in Spring Data repositories
  • Fix problems with count queries that require parameters in Spring Data repositories
  • Properly set parent id on converted creatable subviews contained in inverse collections
  • Fix type variable related issues with Spring Data Repositories
  • Properly set parent id on converted creatable subviews contained in inverse collections
  • Fix entity view build time validation error with certain inheritance mappings
  • Fix problems with objects of wrong types being returned from standard repository methods with Spring Data 2.0+
  • Fix various little issues related to embeddable handling in updatable entity views
  • Fix support for mapping the inverse side of a ManyToMany as updatable collection
  • Fix cycle detection for certain polymorphic entity view graphs
  • Fix problems with correlated subqueries that used a ManyToMany collection

Backwards-incompatible changes

  • Require @AllowUpdatableEntityViews to be able to use updatable entity view types by for *ToOne relationships in updatable entity views to avoid possible problems

1.3.0-Alpha3

20/07/2018 - Release tag Resolved issues

New features

  • Hibernate 5.4 support
  • Add support for GROUP BY with PaginatedCriteriaBuilder
  • PaginatedCriteriaBuilder API allows to define custom identifiers by which to paginate
  • Optimizations for pagination and ORDER BY rendering based on improved nullability and uniqueness analysis
  • Partial support for @IdClass or multiple id attribute use cases
  • Support for using Specification in Spring Data Repository query methods
  • Support updating/persisting updatable/creatable entity views in Spring Data repositories
  • Add support for cascading of correlated updatable entity views
  • Add support for inverse OneToOne mappings in updatable entity views
  • Improve performance of aggregate queries when using pagination by doing a functional dependency analysis
  • Treat array expression joins like *ToOne joins and avoid unnecessary id query usages because of that
  • Don't fallback to offset pagination when changing maxResults
  • Make use of getOffset rather than getPageNumber in Spring Data and DeltaSpike Data repositories
  • Introduce offset and prevOffset parameters for JAX-RS and Spring MVC integrations
  • Avoid duplicate select items for when doing keyset extraction with PaginatedCriteriaBuilder
  • Support keyset pagination with embedded ids
  • Support keyset pagination with non-basic attribute types like e.g. enums
  • Fetch just a singular id if possible when using an object type as correlation basis
  • Omit joins that are only used in the select clause when removing the default select after query copying
  • Add support for Spring Data 2.1 with a new integration module
  • Introduced EntityViewSettingProcessor to allow customizing EntityViewSetting used in Spring Data repositories
  • Add with* methods to EntityViewSetting for easy method chaining
  • Allow to force the use of an id query with withForceIdQuery on PaginatedCriteriaBuilder
  • Added workaround for HHH-12942

Bug fixes

  • Problems with the use of the VALUES clause and parameters in the select clause have been fixed
  • Fix an NPE caused by passing a null sort param to count query creation
  • Criteria query objects constructed from our JPA criteria implementation are now independent of an EntityManager
  • Fix possible NPEs when passing a null predicate to criteria query objects
  • Postfix query root alias if it equals a JPA keyword
  • Fix parent already set problem with updatable flat views that contain collections or subviews
  • Always use init entity view constructor when no explicit constructor was requested rather than throwing an exception
  • Fix a nasty bug related to the use of type converters within flat view types
  • Fix adding updatable views with collections to inverse relationships with query flushing
  • Properly restore a creatable collection element when rollback happened due to error in that element
  • Properly apply firstResult and maxResults given in CriteriaBuilder to queries that involve custom SQL
  • Reset updatable entity view parent id of inverse relations on rollback properly
  • Fix parameter handling in custom functions for EclipseLink when rendering parameters as chunks
  • Fix identity problems of updatable subviews for embeddables
  • Fix wrong order of keysets in the keyset page returned from a previous page request
  • Fix some problems with inverse collection flushing and setting the parent on existing view fields
  • Fix a few problems with state resetting of updatable entity views on transaction rollback
  • Fix query generation problems in JPA Criteria implementation when using correlated roots in subqueries

Backwards-incompatible changes

  • BlazeCriteria and BlazeCriteriaBuilderFactory now accept only a CriteriaBuilderFactory
  • An EntityManager is now required during CriteriaBuilder construction in BlazeCriteriaQuery.createCriteriaBuilder
  • BlazeCriteriaQuery does not implement Queryable anymore. Use BlazeCriteriaQuery.createCriteriaBuilder(EntityManager) which returns a Queryable
  • BlazeCriteriaDelete does not implement Executable anymore. Use BlazeCriteriaDelete.createCriteriaBuilder(EntityManager) which returns a Executable
  • BlazeCriteriaUpdate does not implement Executable anymore. Use BlazeCriteriaUpdate.createCriteriaBuilder(EntityManager) which returns a Executable
  • DeltaSpike Data KeysetPageRequest(KeysetPageable, Sort, int, int) constructor was changed to match the order as defined in the PageRequest
  • Spring Data KeysetPageRequest(KeysetPageable, Sort, int, int) constructor was changed to match the order as defined in the PageRequest
  • Spring Data 2.0 integration maven artifact name is now blaze-persistence-integration-spring-data-2.0 instead of blaze-persistence-integration-spring-data-2.x

1.3.0-Alpha2

20/07/2018 - Release tag Resolved issues

New features

  • Add support for providing entity view optional parameters in spring-data repositories via @OptionalParam
  • Introduced EMBEDDING_VIEW function as proper replacement for many OUTER function uses in entity views
  • Smoothen support for embeddables in updatable entity views
  • Improve performance by omitting null precedence emulation on MySQL for the default null precedence
  • Allow use of OUTER and other macros in subquery correlation join path

Bug fixes

  • Fix for NullPointerException that happened during query builder copying when having a parameter multiple times in a select clause
  • Allow correlating entities with embedded ids with the batch select fetch strategy

Backwards-incompatible changes

None

1.3.0-Alpha1

05/07/2018 - Release tag Resolved issues

Note that 1.3.0-Alpha1 contains all fixes from 1.2.1 as well.

New features

  • Hibernate 5.3 support
  • Allow querying by javax.persistence.metamodel.EntityType in addition to Class to support dynamic entities
  • Entity join support in JPA Criteria API extension
  • Support the use of Hibernate Envers Audited entities
  • Move BlazeCriteria to jpa-criteria-api artifact

Bug fixes

  • Fix AbstractMethodError problems encountered when using JPA 2.1 Criteria methods
  • Fix correlation mapping issue with FetchStrategy.JOIN when using joinable correlation result
  • Fixed problems when using positional query parameters (i.e. through Hibernate's @Filter) on collections using the SUBSELECT fetch mode on entities that were fetched through a CTE query.
  • Fix type determination of columns with custom Hibernate user types
  • Fix problems with paths resolving to embeddable types in correlation basis mapping
  • Fix problems with paths resolving to embeddable types when used as entity view root
  • Fix problems with quoted identifiers
  • Fix startup errors when using embedded id sub-property in VIEW_ROOT with SUBSELECT and SELECT strategy
  • Support natural id associations
  • Allow using array access syntax for maps contained in embeddables

Backwards-incompatible changes

  • Remove BlazeCriteriaBuilder.functionFunction in favor of using CriteriaBuilder.function

1.2.1

05/07/2018 - Release tag Resolved issues

New features

  • Hibernate 5.3 support
  • Move BlazeCriteria to jpa-criteria-api artifact

Bug fixes

  • Fix AbstractMethodError problems encountered when using JPA 2.1 Criteria methods
  • Fix correlation mapping issue with FetchStrategy.JOIN when using joinable correlation result
  • Fixed problems when using positional query parameters (i.e. through Hibernate's @Filter) on collections using the SUBSELECT fetch mode on entities that were fetched through a CTE query.
  • Fix type determination of columns with custom Hibernate user types
  • Fix problems with paths resolving to embeddable types in correlation basis mapping
  • Fix problems with paths resolving to embeddable types when used as entity view root
  • Fix problems with quoted identifiers
  • Fix startup errors when using embedded id sub-property in VIEW_ROOT with SUBSELECT and SELECT strategy
  • Support natural id associations

Backwards-incompatible changes

None

1.2.0

08/05/2018 - Release tag Resolved issues

New features

  • Java 9 & 10 support
  • Allow to skip count query in PaginatedCriteriaBuilder API
  • Add support for orphan deletion in updatable entity views
  • Improve expression caching performance

Bug fixes

  • Fix various issues in the Spring Data and DeltaSpike Data integration
  • Fix query generation issue when using an aggregate around a SIZE expression

Backwards-incompatible changes

  • ExpressionCache SPI was changed to allow an easy implementation

1.2.0-Alpha6

17/03/2018 - Release tag Resolved issues

New features

None

Bug fixes

  • Fix problems related to the use of Spring Data's JpaRepository that caused startup errors
  • Fix problems related to the use of DeltaSpike Data's FullEntityRepository that caused startup errors

Backwards-incompatible changes

None

1.2.0-Alpha5

15/03/2018 - Release tag Resolved issues

New features

  • Support for fetch strategies for non-correlated mappings
  • Add method to enable query result caching
  • CorrelationBuilder now returns CorrelationQueryBuilder that offers extended functionality
  • Updatable attributes by default now allow all known subtypes that don't introduce cycles, rather than requiring the user to specify all allowed subtypes
  • Spring Data Rest integration offering first class keyset pagination support
  • DeltaSpike Data Rest integration offering pagination support similar to what Spring Data offers
  • Support for Spring Data 2.0 via a new integration module
  • Support for DeltaSpike Data 1.8 via a new integration module
  • Experimental support for Hibernate 5.3 and DataNucleus 5.1
  • Support for compiling and running on JDK 9 & 10 & 11-EA
  • Add Automatic-Module-Name manifest entry for all modules
  • Support for positional parameters
  • Improve error messages for various error scenarios

Bug fixes

  • EntityViewManager was wrongly passed to @PostCreate Java 8 default methods in interfaces
  • Fix illegal Entity-To-Association-Id rewrite
  • Fix some bugs related to updatable inverse collection mappings
  • Fix some small bugs related to the use of normal entity views and the change model API
  • Fix bug related to Hibernate @Subselect usage
  • Fix bug related to missing aliases in Tuple
  • Fix in cyclic join detection that happened when using multiple join nodes in ON clause
  • Fix exception related to cyclic select alias resolving
  • Fix exception related to use of @SeoncdaryTable with entity inheritance

Backwards-incompatible changes

  • Renamed whereExpression to setWhereExpression
  • Renamed havingExpression to setHavingExpression
  • Renamed onExpression to setOnExpression
  • Renamed whereExpressionSubqueries to setWhereExpressionSubqueries
  • Renamed havingExpressionSubqueries to setHavingExpressionSubqueries
  • Renamed onExpressionSubqueries to setOnExpressionSubqueries
  • Package renamings for many modules to avoid split package problem on JDK 9
  • Rename SpringData integration module since it was for 1.11 only and add module for 2.0
  • Rename DeltaSpike integration module since it was for 1.7 only and add module for 1.8
  • CorrelationBuilder now returns CorrelationQueryBuilder that offers extended functionality

1.2.0-Alpha4

10/02/2018 - Release tag Resolved issues

New features

  • Keyset pagination generates more efficient predicates that can make use of indexes more easily
  • A very advanced prototype for Updatable Entity Views was introduced. You might want to check out the documentation
  • Introduced DeltaSpike Data integration and aligned the Spring Data integration with it
  • Introduced Maven archetypes for Java EE, DeltaSpike Data and Spring Boot
  • Support for DML operations on entity collections
  • Conversion between Entity View types
  • Support for attribute converters in Entity Views

Bug fixes

  • The cyclic join dependency algorithm wrongly reported an error when entity joins were used
  • Wrong interpretation of alias when same named association existed
  • Some Entity View inheritance mappings led to the generation of clashing constructors
  • Entity View inheritance for deep (3+ levels) polymorphic entity hierarchies produced wrong results
  • Expression copying did not work properly which led to wrong queries after some optimizations
  • Implicit joins on a query that happened in expressions of subqueries were wrongly removed in paginated queries
  • Flat views were not instantiated if all properties were null

Backwards-incompatible changes

  • Many methods in the JpaProvider SPI changed their signatures
  • Moved methods from ExtendedQuerySupport SPI to JpaProvider SPI
  • Small signature changes in Entity View Metamodel API
  • Spring integration package names were changed from com.blazebit.persistence.view.impl.spring.* to com.blazebit.persistence.view.spring.impl.*

1.2.0-Alpha3

27/04/2017 - Release tag Resolved issues

New features

  • Finally there is a full reference documentation available
  • Keyset pagination now falls back to offset pagination when requesting the first page
  • Created test case template projects
  • Entity View Spring integration now allows the use of includeFilters and excludeFilters on @EnableEntityViews
  • Extended SubqueryInitiator by most of the from() variants
  • Support enum and entity type literal like the JPA spec says
  • Introduction of @MappingCorrelatedSimple for simple correlations
  • Allow empty correlation result with JOIN fetch strategy
  • Support for join fetching with scalar selects
  • Support fetches for entity mappings in entity views
  • Automatic rewrites of id expressions in equality predicates to avoid joins
  • Various performance improvements
  • Support referring to this in all mapping types for putting values in embedded objects
  • Relaxed strict requirements for @IdMapping and removed @EmbeddableEntityView
  • Full support for TREAT operator. Note that EclipseLink and DataNucleus only support very few basic usages
  • Spring Data JPA Specifications support
  • Support for entity view inheritance as well as using the TREAT operator in entity view mappings

Bug fixes

  • Fixed issue with usage of Hibernate @Formula
  • Fixed entity manager leak
  • Fixed GROUP BY map key regression
  • Fixed possible problems when from element alias clashes with attribute name
  • Fixed Hibernate integration dependency version
  • Allow ORDER BY a SELECT alias that is a CASE WHEN expression
  • Fixed missing LIMIT/OFFSET clause for set operations
  • Workaround for Hibernate parser bug when encountering arithmetic expressions in the THEN of a CASE WHEN
  • Fixed keyset pagination issue that caused the user to receive a reversed result
  • Better handling of raw types and improved JPA attribute type resolving for field access types and targetEntity uses
  • VALUES clause issues with *ToOne types have been fixed
  • Handle more inheritance strategies when extracting DBMS details
  • Fixed problems with entities that have a fixed schema or catalog
  • Consider default batch size for correlated attributes
  • Fixed problems with inconsistent default naming of VALUES clause from elements
  • Fixed critical query caching bug related to parameter lists in queries

Backwards-incompatible changes

  • ReturningObjectBuilder was changed to accept a SimpleReturningBuilder. This is actually a bug fix because the feature was broken before
  • Moved the CTEBuilder interface implements entry from BaseCriteriaBuilder to CriteriaBuilder so that set operations can't simply add CTEs
  • Introduced MiddleOngoingSetOperationXXXBuilder types that don't allow query building for better consistency
  • Renamed Spring-Data integration from blaze-persistence-spring-data to blaze-persistence-integration-spring-data for consistency
  • Renamed fetch strategy SUBQUERY to SELECT
  • Changed the default for partial for updatable entity views to be false
  • Clarified the type hierarchy for entity view metamodel elements
  • Renamed showcase project artifacts to be consistent
  • Removed special qualified literals for enums and entity types
  • Removed the QueryTransformer SPI as it is not required anymore
  • Changed the default correlation fetch strategy from JOIN to SELECT
  • Changed CorrelationProvider and CorrelationBuilder to disallow specifying a custom alias
  • Entity view metamodel changed to fix consistency problems and adapt for @EmbeddableEntityView removal
  • The EntityManagerFactoryIntegrator SPI changed to allow retrieving existing registered functions as JpqlFunction objects

1.2.0-Alpha2

01/02/2017 - Release tag Resolved issues

New features

  • Spring integration for Entity Views
  • Spring Data integration for Entity Views
  • Showcase for CDI and Spring usage
  • Allow to reuse keyset page in more situations
  • Oracle and SQL Server support
  • Basic EclipseLink support similar to DataNucleus
  • Subviews for map keys
  • Embeddable support for CTEs and VALUES clause
  • Support for correlating unrelated entities in entity views
  • Support for primitive types in entity views

Bug fixes

  • Support for primitive type in Entity Views
  • Keyset pagination backwards scrolling didn't invert the result list
  • JOIN FETCH problems with PaginatedCriteriaBuilder
  • Duplicate entity mappings in case of classpath scanning
  • MySQL 5.7 group by problems
  • Edge cases for duplicate results in entity view collections
  • Better builder end tracking to easier find errors in the code
  • Various fixes for implicit group by generation

Backwards-incompatible changes

  • DbmsDialect has been extended. If you have a custom implementation you have to adapt
  • Implicit downcasting has been removed and will be replaced with proper TREAT support in the next version. The branch implicit-downcast still has support for this but won't be further maintained.

1.2.0-Alpha1

29/09/2016 - Release tag Resolved issues

New features

  • Entity join support
  • Entity views can reference the VIEW_ROOT and have a custom root
  • Type literal support in parser
  • Correlated paths for subqueries support
  • JPQL-Treat support
  • Entity view can correlate subviews through subqueries
  • VALUES clause support
  • JPA Criteria API implementation backed by blaze-persistence
  • SIZE to COUNT transformation was reworked for better reliability
  • Entity view provider class validation

Bug fixes

  • SIZE to COUNT for indexed collections
  • Hibernate Bug workaround HHH-9329
  • Embeddable entity views allowed to be abstract now
  • Some generics issues have been fixed

Backwards-incompatible changes

  • IN-predicate API of core module was changed to accept Collection instead of List

1.1.1

29/09/2016 - Release tag Resolved issues

New features

None

Bug fixes

  • Workaround for composite id entities in PaginatedCriteriaBuilder
  • Hibernate integration issue fixes

Backwards-incompatible changes

None