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
3 answers

JPQL count Parent Objects on Multiple Children Match in OneToMany Relationship

In a JavaEE JPA web application, Feature entity has bidirectional ManyToOne relationship with Patient Entity. I want to write a query to count the number of Patients who have one or more matching criteria features. I use EclipseLink as the…
Buddhika Ariyaratne
  • 2,339
  • 6
  • 51
  • 88
2
votes
3 answers

java.lang.OutOfMemoryError: GC overhead limit exceeded : Application deployed in weblogic

We have application deployed on weblogic 12c and we are seeing intermittent following exception in the logs   java.lang.OutOfMemoryError: GC overhead limit exceeded and when I see the applications log4j logs at the same time I can see following…
Pawan Patil
  • 1,067
  • 5
  • 20
  • 46
2
votes
1 answer

Is there a way to make eclipselink/JPA use redis for saving and retrieving peristence-unit level (L2) cache?

I'm setting up a cluster environment and I want my JPA's second level cache to be replicated throughout the cluster's nodes. I'm using eclipselink as JPA provider and redis for cache management.
Bharat Gadde
  • 173
  • 1
  • 10
2
votes
3 answers

java.lang.NoSuchMethodError: javax.persistence.PersistenceContext.synchronization

While deploying application on Tomcat 8.0.36 I am getting following exception org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventsDAOImpl' Post-processing of merged bean definition failed; nested…
Pawan Patil
  • 1,067
  • 5
  • 20
  • 46
2
votes
1 answer

JAXB Unmarshalling to entities error

I have an issue unmarshalling a xml stream to entities. My foreign keys never get set to an object with the proper primary key, they just get set to an emtpy object. The class with the foreign keys is called ProductBase. It has a reference to…
grantk
  • 3,958
  • 4
  • 28
  • 37
2
votes
1 answer

How to enable the eclipselink static weaving in spring boot along with gradle

Involve the https://plugins.gradle.org/plugin/org.jamgo.eclipselink-plugin Check the log [EL Warning]: metadata: ServerSession(1559673372)--Reverting the lazy setting on the OneToOne or ManyToOne attribute [copyCustomer] for the entity class…
Allen Wu
  • 21
  • 1
2
votes
2 answers

ClassCastException: JPA -> Bean value (different ClassLoaders)

I get a ClassCastException when assigning an object from JPA to an attribute of a ManagedBean: Object r = query.getSingleResult(); // javax.persistence.Query ClassLoader c1 = this.getClass().getClassLoader(); ClassLoader c2 =…
voglerr
  • 883
  • 2
  • 11
  • 18
2
votes
2 answers

Eclipselink, c3p0 and Spring - creating too many connections!

I'm trying to use c3p0 to pool my connections to a MySQL DB with Eclipselink, but I've encountered a problem. On starting the Virgo server, the correct number of c3p0 initialPoolSize connections are created, but everytime an EntityTransaction is…
olan
  • 3,568
  • 5
  • 24
  • 30
2
votes
1 answer

JPA EclipseLink - The expression is not a valid conditional expression

Although there is nothing wrong with this query, eclipselink throws this exception. [34, 130] The expression is not a valid conditional expression. I am trying to run Spring boot with Jpa/eclipselink in windows 7. The problem occurs when I change…
rgaraisayev
  • 398
  • 3
  • 13
2
votes
1 answer

Many-To-One Association in Spring JPA does not update related entity

I have a problem inserting JPA entites in the DB using a many-to-one association. I'm using: Spring Boot 2.1.4.RELEASE Ecliselink 2.7.4.RC2 (org.eclipse.persistence.jpa) spring-boot-starter-data-jpa I'm using Spring's repository where I only…
2
votes
1 answer

Eclipselink NamedNativeQuery pass column name as parameter and not a value

Trying to pass column name as parameter but JPA sets it as a value surrounding it with single quotes. @NamedNativeQueries({ @NamedNativeQuery( name = "Genre.findAllLocalized", query = "SELECT " + "…
Esteban Rincon
  • 2,040
  • 3
  • 27
  • 44
2
votes
1 answer

JAXB/MOXy: How to partially unmarshall, passing the descendants of a given node to a closed/proprietary class?

I'm starting with some Java classes that I would like to be able to unmarshall from XML--I'm determining the schema as I go. I would like to use XML similar to the following:
2
votes
1 answer

MOXy JSON support

I'm using EclipseLink's MOXy as the JAXB implementation in my RESTEasy project.MOXy's advanced functionality which has been brought by annotations like @XmlDiscriminatorNode & Value helped me a lot. Everything's working fine except one thing: JSON…
barand
  • 174
  • 1
  • 9
2
votes
1 answer

EclipseLink/JPA2 ManyToOne bidirectional cascade persist issue

This is similar to How to cascade persist using JPA/EclipseLink I have to entities like so. One is RoomEntity that has a one to many bi-directional relationship with ComputerEntity. eg. each room has 0..n computers. @Entity public class…
NBW
  • 1,467
  • 2
  • 18
  • 27
2
votes
2 answers

Inserting the value in the "other side" of a 1-to-n relationship in JPA (using EclipseLink)

I have an app using JSF 2, JPA 2 and EJB 3.1 running on GlassFish v3 (so it uses EclipseLink 2). This application has two JPA entities, Person and Message and each Message has a reference for two Persons, the message sender and the message receiver.…
brandizzi
  • 26,083
  • 8
  • 103
  • 158