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

Why does eclipselink consume the whole allocationSize each time it's rebooted?

I've just noticed that for my entity's id, eclipselink assigns an id 1 + the previously greated assigned IN THE SAME SESSION (1), as opposed to in the element table (2). This goes against my application expectations. What's the easiest way to tell…
simpatico
  • 10,709
  • 20
  • 81
  • 126
2
votes
1 answer

Why didn't read JPA find() method uncommitted changes?

I am puzzled by a JPA behavior which I did not expect in that way (using Eclipselink). I run on Wildfly 10 (JDK-8) a stateless session EJB (3.2). My method call is - per default - encapsulated in a transaction. Now my business method, when reading…
Ralph
  • 4,500
  • 9
  • 48
  • 87
2
votes
2 answers

Multiple constraint violation on flush and persist in a single transaction

I'm trying to persist many records in one transaction using JPA (EclipseLink). The Entry has a primary key defined on DB. I have some duplicates in my feed so I know there will be a constraint violation. I want to catch a Constraint Violation…
Dominik Kunicki
  • 1,037
  • 1
  • 12
  • 35
2
votes
2 answers

How to ensure load time weaving takes place for Eclipselink when using SpringBootTest with other tests running beforethe Spring one

I'm using Spring Rest Docs to generate documentation for my REST services. This involves running unit(strictly integration) tests that run against a live Spring Boot Container that is kicked off by the test. The test class looks like…
PaulNUK
  • 4,774
  • 2
  • 30
  • 58
2
votes
2 answers

JPA failed to automatically generate a table from an entity

I am using Eclipselink with Derby database to automatically generated a database from Entities. The generation worked just fine at first, but when i added a User entity to my model and tried to generate tables from entities with JPA tools all the…
2
votes
1 answer

Mapping a Java property to several xml attributes using JAXB and MOXy

I have a simple class CustomQuoteRequest: public class CustomQuoteRequest { private String requestId; private String currencyPairCode; public String getRequestId() { return requestId; } public void setRequestId(String requestId) { …
Sergio
  • 491
  • 4
  • 11
2
votes
0 answers

Hibernate and Eclipse Link on the same database with identical domain model

At the moment I'm trying to combine a pretty old messy monolithic application with a nice up to date Spring micro-service architecture to get rid of the monolith some time in the future. The problem I struggle, is to generate unique ids when…
FlorianG.
  • 21
  • 2
2
votes
1 answer

JPQL EclipseLink Pagination

I am having trouble implementing pagination in a JavaEE web application with EclipseLink. The target entity: @Entity @JsonIdentityInfo(generator=JSOGGenerator.class) @NamedQueries({ @NamedQuery( name = Project.QUERY_FIND_FOR_ADMIN, …
Rooky
  • 810
  • 3
  • 12
  • 20
2
votes
0 answers

JPA Criteria subquery collate: Invalid query key in expression

I am using ecliselink, and try to convert a native SQL to Criteria API which contains subquery, but got exception that is related to collation of subquery. Calculate sales order total from item prices using subquery: public class SalesOrder { …
Dave
  • 759
  • 2
  • 9
  • 31
2
votes
1 answer

JPA EclipseLink support subquery in selection? ClassCastException

using Eclipse 2.6.3, selecting a subquery emits the following error. Does it support subquery in selection? CriteriaQuery query = criteriaBuilder.createQuery(String.class); Root root = query.from(Employee.class); Subquery subquery =…
Dave
  • 759
  • 2
  • 9
  • 31
2
votes
1 answer

What are the requirements for an IdClass in EclipseLink?

The EclipseLink user guide states that when constructing an IdClass (not embedded) for a composite primary key, it must have a public no-argument constructor and implement the methods equals and hashCode. In addition, the example it gives also…
oulenz
  • 1,199
  • 1
  • 15
  • 24
2
votes
0 answers

No bean validation with constraints in xml on PrePersist - JPA with EclipseLink

I have a Java EE 7 web application (JSF 2.2) and JPA with EclipseLink 2.5.2, running on a GlassFish 4.1 (build 13) with Hibernate Validator 5.0.0.Final. My purpose is to use bean validation for the enitity classes but don't want to use the provided…
2
votes
1 answer

loading @OneToMany collections has become slow with eclipseLink and JPA

I've made some changes on my application. I am quite sure that it has become slow when loading data from database due to changes on the entities (and this after going through some profilings on Netbeans IDE). What I have added is some methods and…
Houssam Badri
  • 2,441
  • 3
  • 29
  • 60
2
votes
1 answer

AttributeConverter#convertToEntityAttribute for UUID throws java.lang.ClassCastException

I have written the following converter for my entities: @Converter(autoApply = true) public class UUIDConverter implements AttributeConverter { @Override public String convertToDatabaseColumn(UUID attribute) { return…
perotom
  • 851
  • 13
  • 33
2
votes
0 answers

Spring Boot + Tomcat + EclipseLink causes: Cannot apply class transformer without LoadTimeWeaver specified

I'm currently struggleing around with a Spring-Boot application that should use EclipseLink as JPa implementation and that app should run within a Tomcat 8 container. Unfortunatelly I'm not able to get it to work. As far as I read I need to add the…
Sven S.
  • 21
  • 3