Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
31 views

@ExpectedDatabase not working as expected

I have a JUnit test which does a basic check of the repository layer which deletes an entry from the db. I am using @DatabaseSetup annotation to provide initial configuration and using @...
Darshil Shah's user avatar
0 votes
0 answers
49 views

How to OrderBy entity results using Map value included in the @Entity as @CollectionTable

I am trying to orderby value of a Map that is included in my @Entity as @CollectionTable @ElementCollection. I try to do this using criteriabuilder and eclipselink. I provide below the entity example @...
geminal's user avatar
  • 19
0 votes
2 answers
64 views

Transactions executed in Spring using external Tomcat twice faster than Spring embeded Tomcat

A simple Spring application that uses standard Hikari connector and Eclipselink as JPA provider takes double time (aprox) if executed using embeded Tomcat. I also tried hibernate with similar result. @...
vrivon's user avatar
  • 75
0 votes
1 answer
55 views

How to join tables efficiently?

In Java, with JPA and EclipseLink. Lets say I have 3 tables: Supplier, Order and Customer I want to get all customers that have an order by said supplier. Say suppliers and customers are not directly ...
deantre.s's user avatar
0 votes
0 answers
39 views

Hibernate not generating additional queries while fetching associated entities in eclipse console

Below is my Owning side Entity - @Entity @Table(name = "T_PERSON") @Inheritance(strategy = InheritanceType.JOINED) public class Person { private Long id; private String firstName; private ...
Debaprasad Jana's user avatar
0 votes
0 answers
41 views

Use composition OOP design principle to refactor a legacy application code

I'm working on the code for an old application for which it is not possible to modify the database tables under any circumstances. It is therefore not possible to add the Characteristics fields to the ...
user3072470's user avatar
0 votes
1 answer
36 views

how to do static weaving if we use eclipselink jpa in the spring boot app

how to do static weaving if we use eclipselink jpa in the spring boot app. There is a lack of enough articles on it in internet. The articles I saw used de.empulse.eclipselink staticweave-maven-plugin ...
Alok Kumar's user avatar
-1 votes
1 answer
84 views

java.lang.NoClassDefFoundError: javax/sql/DataSource (eclipselink 4.0.2 + GWT 2.11.0)

I am updating a ~10 years old java GWT project. I replaced old eclipselink version to eclipselink 4.0.2 (comes with jakarta). It compiles but when I start it in Eclipse java.lang....
Halacs's user avatar
  • 892
0 votes
0 answers
24 views

Getting data in JPA from table with foreign keys and additional data

I have 3 tables in database (Postgres). The first (A) has its parameters as well as the third (C). There is the second one (B) which contains only foreign keys to A and C. But other than that it ...
Fleky's user avatar
  • 11
0 votes
0 answers
9 views

How do I model an extract element between items in a list using JAXB?

I have the following annotations on a class to generate UUIDs as primary keys. I am getting the exception below when I try to persist a entity. I am using EclipseLink. Any idea how to resolve this. @...
Hendre Louw's user avatar
0 votes
0 answers
47 views

Concurrently open statements

I am working on migrating an existing Spring application from Eclipselink version 2.5.2 to 4.0.2. In this application, there is a API in which the data is saved using the JpaRespository to the data, ...
coder's user avatar
  • 398
0 votes
0 answers
66 views

How should static weaving be done in EclipseLink recent versions like 4.0.0

Hello my project uses EclipseLink as Jpa provider. My objective is to now use Java 17 and EclipseLink 4.0.0 but here I am getting an error class file for org.eclipse.persistence.internal.weaving....
Alok Kumar's user avatar
2 votes
0 answers
254 views

JPA queries memory leak?

We are profiling our application using Jprofiler to solve memory leaks and came across following observations: We ran our application on the same data set to check and took multiple snapshots after ...
Siddharth Trikha's user avatar
0 votes
0 answers
8 views

one entity attributes gets persisted to other entity attributes

I want to perform a jpa related program that have functionlity like when I enter values for attributes in parent entity those need to updated in other table with same attributes is there a way to do ...
Ajay's user avatar
  • 1
0 votes
0 answers
83 views

EclipseLink Performance Problem on Update to Vaadin 24 / Springboot 3

I am working on an Web-Application which is in productive use for about 17 years. Currently it's using Vaadin 23 and EclipseLink 2.7.8. After the end of the support for Vaadin 23 it is necessary to ...
Matthias's user avatar

15 30 50 per page
1
2 3 4 5
233