Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented Persistence.createEntityManagerFactory(PersistenceConfiguration) #8

Closed
wants to merge 25 commits into from

Conversation

Tomas-Kraus
Copy link
Owner

jakartaee/persistence#465 - Add PersistenceConfiguration
jakartaee/persistence#482 - Improvements to PersistenceConfiguratio

…CAST (eclipse-ee4j#1937)

This change doesn't create anything new as specified operators/functions were already specified as a part of EclipseLink JPQL extensions from 2.4 version.
There is refactoring/movement of affected code related with `org.eclipse.persistence.jpa.jpql.parser.CastExpression`, `org.eclipse.persistence.jpa.jpql.parser.DatabaseType`, `org.eclipse.persistence.jpa.jpql.parser.UnionClause` from `EclipseLink...` classes to default JPQL classes.
Due this movement all specified operators/functions are available from Jakarta Persistence/JPQL Grammar 3.2 and still from EclipseLink JPQL extensions 2.4.

EclipseLink issue is described at eclipse-ee4j#1885 and Jakarta Persistence specification request at the jakartaee/persistence#395 (cast) and jakartaee/persistence#398 (union, intersect, and except)

Signed-off-by: Radek Felcman <[email protected]>
@Tomas-Kraus Tomas-Kraus force-pushed the ecl-jpa-32_2 branch 5 times, most recently from 6d7169b to 0adf44a Compare September 15, 2023 13:47
Tomas-Kraus and others added 15 commits September 20, 2023 11:53
…d or() to accept List.

Signed-off-by: Tomáš Kraus <[email protected]>
…CommonAbstractCriteria

Signed-off-by: Tomáš Kraus <[email protected]>
…llInTransaction()

JPA eclipse-ee4j#433 - Add EntityManager.runWithConnection()/callWithConnection()

Signed-off-by: Tomáš Kraus <[email protected]>
…e4j#1951)

* Fixes eclipse-ee4j#1950: Duplicate objects in UnitOfWorkImpl.primaryKeyToNewObjects
- no longer add objects to primaryKeyToNewObjects in assignSequenceNumber
- use IdentityHashSet instead of ArrayList for primaryKeyToNewObjects to prevent duplicates in the future

Signed-off-by: Patrick Schmitt <[email protected]>
It seems, that after transformation from jpa.test to jpa.testapps EntityManagerJUnitTestSuite from jpa.testapps.advanced was excluded from the execution.
This change returns this suite back.

Signed-off-by: Radek Felcman <[email protected]>
improve codegen to handle Map related mappings

Signed-off-by: Lukas Jungmann <[email protected]>
…4j#1958)

add initial size to map creation where expected size is known or can be estimated

Signed-off-by: Patrick Schmitt <[email protected]>
jakartaee/persistence#482 - Improvements to PersistenceConfiguration

Signed-off-by: Tomáš Kraus <[email protected]>
…erloads of EM.find()

 * implemented public <T> T find(Class<T> entityClass, Object primaryKey, FindOption... options)
 * added FindOption processing for JPA API enums, Timeout class was not added yet

Signed-off-by: Tomáš Kraus <[email protected]>
…ons to JPQL/criteria

jakartaee/persistence#356 - Add extract() to CriteriaBuilder

Signed-off-by: Tomáš Kraus <[email protected]>
Tomas-Kraus and others added 5 commits October 17, 2023 13:23
jakartaee/persistence#438 - add Expression.equalTo() and Expression.notEqualTo()

Signed-off-by: Tomáš Kraus <[email protected]>
…erloads of EM.find()

jakartaee/persistence#467 - add joins to entity types (range variables)

Signed-off-by: Tomáš Kraus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants