Questions tagged [eclipselink]

EclipseLink delivers a comprehensive open-source Java persistence solution. EclipseLink focuses on standards (JPA, JAXB, SDO) with advanced features, performance and scalability for enterprise software developers across data sources, formats, and containers.

EclipseLink delivers a comprehensive open-source Java persistence solution. EclipseLink focuses on standards (JPA, JAXB, SDO) with advanced features, performance and scalability for enterprise software developers across data sources, formats, and containers.

5055 questions
2
votes
0 answers

How to config depth of cascade operation in EclipseLink?

For example, there is a relationship between A , B and C: A has Many B, B has many C. I want to remove B and C while remove A. Default is, When remove A, B can be removed at the same time, but C can not.
Keating
  • 3,380
  • 10
  • 34
  • 42
2
votes
1 answer

Why EclipseLink 's auto commit doesn't work with MySQL?

Using the following code: EntityManager manager = factory.createEntityManager(); manager.setFlushMode(FlushModeType.AUTO); PhysicalCard card = new…
Wudong
  • 2,320
  • 2
  • 32
  • 46
2
votes
3 answers

how to use another implementation for JPA 2 level 2 cache?

We'd like to use another L2 cache for our big JPA application. We are trying to achieve a shared cache between multiple servers. We use Eclipselink as JPA implementation, and some legacy codes uses internal Eclipselink API's, so switching is not an…
ymajoros
  • 2,454
  • 3
  • 34
  • 60
2
votes
1 answer

Java JPA (EclipseLink) How to receive the next GeneratedValue before persisting actual entity?

I'm using the EclipseLink implementation of JPA and I've got a problem. Here is my entity class: @Entity @Table(name = "attendances") public class Attendance implements Serializable { private static final long serialVersionUID = 1L; @Id …
2
votes
1 answer

The right expression is not a valid expression in the JPQL/HQL query

I don't understand why is my JPQL expression wrong. I want to get the list with bikes that are not deleted from my database and is renting at the moment. Can you help me? @Data @MappedSuperclass public abstract class AbstractEntity implements…
tt_531
  • 51
  • 5
2
votes
1 answer

Execute some arbitrary sql in the current transaction in JPA 2.0

I am new to JPA 2.0/EclipseLink/Glassfish/JEE6, and have kind of a basic question. I have a DAO in which most of the entities are mapped directly to columns using JPA annotations, so I use the EntityManager, and it works great with no issues. …
Kevin Pauli
  • 8,577
  • 15
  • 49
  • 70
2
votes
1 answer

Self ManyToMany with additional columns using JPA 2.0

I have Application entity, want to express self bi-directional relationship with attribute in JPA. EX. QuoteStore(provider Application) provides services to online portal and many(consumer applications) and QuoteStore(consumer Application) consumes…
user237673
2
votes
3 answers

EclipseLink very slow on inserting data

I'm using the latest EclipseLink version with MySQL 5.5 (table type InnoDB). I'm inserting about 30900 records (which could be also more) at a time. The problem is, that the insert performance is pretty poor: it takes about 22 seconds to insert all…
Stefan
  • 582
  • 1
  • 5
  • 17
2
votes
0 answers

Is it possible to turn off eclipselink version increment for particular update?

There is a similar question here for Hibernate with an answer by Palladium explaining how to merge a detached object back to the entity cache without increasing the version. Is the same also achievable with eclispelink? How? I am aware how to…
Alex K.
  • 220
  • 3
  • 10
2
votes
1 answer

Error running Junit test with DBUNIT on SpringBoot project

I have a Junit test, that when I run it I have this error: org.dbunit.dataset.NoSuchColumnException: AUTORISATION_BONANZA.ORGANISATION_ID - (Non-uppercase input column: ORGANISATION_ID) in ColumnNameToIndexes cache map. Note that the map's column…
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
2
votes
1 answer

Netbeans 12.0 - Generating Entity Classes from DB uses Java Date class instead of LocalDate

I am using Netbeans 12.0, and to create my Entity classes for my DB tables, I use Netbeans Entity Classes from Database. It works great other than the fact it defaults all my date columns to the pre Java 8 Date classes, and I recently discovered…
cela
  • 2,352
  • 3
  • 21
  • 43
2
votes
1 answer

Using BETWEEN in native query in JPQL

I tried to make a query using BETWEEN in JPQL, I already tested it in SQL and it works, but when I implemented in JPQL I got an error: Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services -…
newbie3
  • 93
  • 6
2
votes
1 answer

nested @XmlJavaTypeAdapter annotations ignored where nested objects are generic when using eclispelink

When marshaling an object tree I am making use of the @XmlJavaTypeAdapter. Some adapters return objects of classes which themselves have the @XmlJavaTypeAdapter annotation. This worked fine when I used the JAXB implementation packaged with websphere…
user800193
  • 21
  • 4
2
votes
0 answers

Does EclipseLink have some similar functionality like Hibernate Interceptors?

Found a way to use an enum as the entity with its own table in JPA using Hibernate Interceptors. For example, I want to use as an entity following enum: @Entity public enum Color { RED(255, 0, 0), GREEN(0, 255, 0), BLUE(0, 0, 255) …
2
votes
0 answers

ID is null with GenerationType.IDENTITY although Postgres has a valid id

I read several similar posts here on SO but nothing has helped so far. I am using Java EE 8, Open Liberty 20.0.0.6 and PostgreSQL 12. I run my locally using Docker which initializes the schema with: CREATE TABLE IF NOT EXISTS PUBLIC.tab_todo ( …
Apollo
  • 1,296
  • 2
  • 11
  • 24