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
1 answer

JPA/Eclipselink - Multpile entities in single table

I'm using Eclipselink to map my tables to entities. I have one big database table (actually it's view) with columns like groupId, groupName, categoryId, categoryName etc. I know it's redundand, but we're trying to minimize queries and it's…
karolkpl
  • 2,189
  • 10
  • 39
  • 60
2
votes
0 answers

eclipselink 2.7.7 JPA Criteria API - how to call LISTAGG WITHIN GROUP (ORDER BY...)

I need to call LISTAGG using the criteria api. I am calling it as shown below - criteriaQuery.multiselect(builder.function("LISTAGG", String.class, joinedTable.get("name")).alias("source")) This is working with h2 test database but when oracle…
2
votes
0 answers

Eclipselink to Hibernate migration: em.persist fails in hibernate when not null is set in DB

We are migrating our application from eclipselink to hibernate. In our legacy code we are persisting the object first, then setting the values. This used to work in eclipselink but fails in hibernate in the case when we try to call em.persist before…
Hasn A
  • 73
  • 1
  • 5
2
votes
1 answer

@SequenceGenerator with DerbyEmbedded Problem

I m actually trying to learn JPA, and i'm having some trouble with @SequenceGenerator. I'm using the derby Embedded database with EclipseLink and I'm trying to apply the SequenceGenerator annotation to the id of a Person Entity. Here's the code i'm…
George Casttrey
  • 427
  • 1
  • 6
  • 16
2
votes
1 answer

EJB abstract entity causing java.lang.NoClassDefFoundError?

In my ejb project I defined an abstract entity class called DataObjectEntity.java, and have all entities extend this class. The purpose is such that common fields can be reused and logging of activities in the system can be…
Wei
  • 1,252
  • 13
  • 19
2
votes
1 answer

JPA-Eclipselink does not work. "AbstractSession is null"

I am new in jpa. I am using eclipselink for that. So i am trying to a simple maven project. But it doesnt work. I am getting this error (full stack trace): Internal Exception: java.lang.NullPointerException: Cannot invoke…
iloveJava
  • 21
  • 2
2
votes
1 answer

Is there a way to prevent JPQL's FUNCTION from returning an object of type java.lang.Object?

I have the following JPQL query running in a Payara Micro 5.2022.2 application. TypedQuery query = entityManager.createQuery( "SELECT new UserDto((FUNCTION('COALESCE', (select fullname from Person p where p.userId = u.id), 'Name not…
FourtyTwo
  • 734
  • 8
  • 19
2
votes
2 answers

How to Insert Clob using JPA

We have a problem where we need to keep the copy of an input file in DB(regulatory purposes). The file can be of size upto 1GB. Is there any way (using streaming and incremental updates) to insert the entire file into DB using JPA ?
nobody
  • 1,909
  • 5
  • 31
  • 45
2
votes
0 answers

Is it possible to include a database view in a JPA/EclipseLink CriteriaQuery?

I am working on a project that needs to be able to create dynamic queries into an H2 database. This also includes a full text search with built-in H2 logic, tables, and triggers. I have been trying to figure out how to add that full-text search into…
chriso153
  • 23
  • 5
2
votes
1 answer

JPA persistence unit definitions are conflicting

I want to use one class and two JPA persistence units and as such to be able to store data in different tables (or even databases) and different definitions. According to the JPA2.2 specification this should be possible but I experience weird…
thehpi
  • 5,683
  • 4
  • 17
  • 24
2
votes
1 answer

Static Weaving for EclipseLink with Eclipse WTP

I've got a project running on Tomcat within Eclipse WTP that deploys with some JPA entities. I would like to enable ChangeTracking on these entities, but this requires enabling weaving. Since Tomcat doesn't allow for dynamic weaving, I need to do…
Philihp Busby
  • 4,389
  • 4
  • 23
  • 19
2
votes
1 answer

Parallel JPA requests with `@Async` to boost performance?

I am in charge of improving the performance of our application. I'm now at the point where I'm considering trying to making certain things run in parallel. If it can help: we use Postgres as our DB, and EclipseLink is our JPA Provider. This is a…
payne
  • 4,691
  • 8
  • 37
  • 85
2
votes
0 answers

One-to-One unidirectional mapping JPA - EclipseLink

I have the following entity classes public class Container { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) private final Long id; @Column(name = "container_id") private final String containerId; …
Adarsh
  • 33
  • 8
2
votes
1 answer

TransactionManager already defined in Spring Batch using EclipseLink JPA

have to use EclipseLink as JPA implementation for my Spring Batch Job because Hibernate lacks an important feature that I need. Unfortunately, after exchanging Hibernate with EclipseLink, i get the following error when starting my batch jar: $ java…
Manu
  • 284
  • 2
  • 20
2
votes
1 answer

Indigo Target Platform missing javax.xml

I'm using Eclipse Indigo and have problems with the setup of an indigo RCP target platform. The Platform consists of the 'EclipseLink' and the 'Eclipse RCP SDK' libraries. I have used the update site to select the bundles. Now, when I look to the…
Toomy
  • 90
  • 1
  • 8