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

JPA Criteria count + isMember generates wrong sql

I'm trying to build the following query with JPA Criteria API (Eclipselink): final CriteriaBuilder qb = this.em.getCriteriaBuilder(); final CriteriaQuery cq = qb.createQuery(Long.class); final Root problem =…
Andrei F.
  • 21
  • 1
2
votes
0 answers

Why do subqueries with nested properties in EclipseLink always produce an unnecessary/redundant/duplicate/superfluous join?

I wanted to generate the following SQL through EclipseLink (2.6.1) JPA criteria. SELECT zonecharge0_.charge AS col_0_0_ FROM projectdb.zone_charge zonecharge0_ WHERE ( EXISTS ( SELECT …
Tiny
  • 27,221
  • 105
  • 339
  • 599
2
votes
2 answers

Can I use Eclipselink Moxy marshalling with delimitted files?

I am using POJO un/marshalling via JAXB and EclipseLink MOXy and it works great for to/from JSON notation. I also have a need to process a CSV file (well actually a pipe-delimited file, what do they call that?) where each row gets unmarshalled into…
Alan Jurgensen
  • 813
  • 11
  • 20
2
votes
1 answer

Reading object a second time using JPA doesn't update it

I have a small web application; a reduced runnable version of it is below. On every http request, I read an object, every time the same, from the database and use it to show the page's content. On the first request after publishing to Glassfish,…
Silly Freak
  • 4,061
  • 1
  • 36
  • 58
2
votes
1 answer

eclipselink error on multithreaded environment

I am using the latest eclipselink (2.5.2) on a multithreaded environment using ThreadLocal to guarantee each thread uses its own entity-manager and I am getting the exception below. Googling through the internet I realized it happened in ver 2.3 on…
DanielM
  • 3,598
  • 5
  • 37
  • 53
2
votes
2 answers

Eclipselink going to wrong database platform

While trying to run a JPA application, I get: [EL Fine]: 2014-07-09 16:55:52.532--Thread(Thread[http-bio-8080-exec-6,5,main])--Detected database platform: org.eclipse.persistence.platform.database.HSQLPlatform Which is NOT the correct platform.…
Scaddenp
  • 67
  • 11
2
votes
0 answers

eclipseLink 2.5.1 static weaving NoSuchMethodError

I am using EclipseLink 2.5.1 on Tomcat 8. Tried to static weave jars, but got error at run time. java.lang.NoSuchMethodError: mypackage.Employee._persistence_checkFetchedForSet(Ljava/lang/String;)V at…
Dave
  • 487
  • 1
  • 6
  • 19
2
votes
1 answer

Select with JOINED Inhertiance leads to no results

maybe I am overlooking something crucial when working with JPA/EclipseLink (Postgresql 9.2) and InheritanceStrategy.JOINED but this does not make sense to me. I have a Hierarchy like this: @Entity @Inheritance(strategy =…
drame
  • 435
  • 1
  • 4
  • 14
2
votes
4 answers

Glassfish to wildfly migration (from Eclipse link to Hibernate) : LazyInitializationException

I had a web app that run fine on Glassfish 4 and I am migrating it to Wildfly. I get : 15:19:28,802 ERROR [io.undertow.request] (default task-33) UT005023: Exception handling request to /dvd_store/movie.xhtml: javax.servlet.ServletException:…
Mr_and_Mrs_D
  • 32,208
  • 39
  • 178
  • 361
2
votes
1 answer

How to handle Oracle Store Procedure call with Oracle Types as input or output using EclipseLink

I doing a Proof Of Concept to figure out how efficient to call a store procedure using EclipseLink. I was able to call oracle store procedure using EclispeLink with Scalar/primitive data types (link Integer, varchar etc). I wanted to understand how…
MAK
  • 21
  • 1
  • 3
2
votes
1 answer

JPA cache not invalidated

I am developing an application using Eclipse IDE, EclipseLink, JPA and MySQL. During the initial launch of the app, I need to delete a table's content. However, after deletion the application, making a new connection, still reads the old data from…
sebi
  • 41
  • 6
2
votes
1 answer

"NOT IN `subquery`" statement with JPA Criteria API

I'm using JPA in my Java EE application and the Criteria API to query my database (PostgreSQL). I implemented a tree as a Closure Table ans I'm trying to get the root nodes. Here's my schema (useless fields omitted): NeedsTreev2 : id …
Unda
  • 1,827
  • 3
  • 23
  • 35
2
votes
1 answer

Using XSLT with JAXB

I have a JAX-RS web service (Jersey) that uses Eclipselink (MOXy to access some records in a DB then marshall those to XML and send back to the user in the response to the request. The problem that I have is that the user wants a different format to…
Adam Rice
  • 880
  • 8
  • 20
2
votes
1 answer

Navigation method/s in criteria fetch joins in JPA 2.1

While using fetch joins in JPA criteria, there is no navigation method can be seen. Given below an example. Root root = criteriaQuery.from(entityManager.getMetamodel().entity(UserTable.class)); Fetch fetch =…
Tiny
  • 27,221
  • 105
  • 339
  • 599
2
votes
1 answer

JPA Transparent Indirection and Container Policies

Suppose I have the following simple Customer/Order implementation: A record of customers defined by a Customer class. Each customer can have multiple orders defined by an Order class. Drawing on the explanation of Transparent Indirection from here…
user3337410
  • 94
  • 1
  • 10