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

JPQL IN clause - Columns with null on the name

I'm trying to create a query with a IN clause that maps a table with other that have a composite key. For reference the first table maps a composite key (three columns) to OtherTable (contains a OtherTableId object). Example: select t1 from Table…
voliveira89
  • 1,134
  • 2
  • 9
  • 22
2
votes
1 answer

How to get Eclipselink to fire JSR303 constraints in mapped super class?

EclipsLink doesnt' seem to detect or fire JSR303 annotation constraints in a base class that is the mapped super class of an entity during a persist() operation. For example: public Base { @NotNull private Integer id; private String…
fwelland
  • 545
  • 5
  • 17
2
votes
1 answer

JPA criteria JOIN: what does {oj ...} mean in SQL?

I learn JPA and tried the following code: CriteriaBuilder queryBuilder = em.getCriteriaBuilder(); CriteriaQuery criteriaQuery = queryBuilder.createQuery(PersonDI.class); Root personDI =…
Pavel_K
  • 10,748
  • 13
  • 73
  • 186
2
votes
0 answers

Eclipselink generating wrong MySql LIMIT query when used with Composite Persistence Unit

I'm using query.setFirstResult(startPosition); and query.setMaxResults(range);. Lets say start position is 10 and range is 5. In the generated query, I'm getting LIMIT 10, 15. Shouldn't it be 10, 5? Here is the code in my data access…
Thomas
  • 4,119
  • 2
  • 33
  • 49
2
votes
2 answers

Eclipselink Exception after Migration from GF 3.1.2 to Payara 4.1.1

I am migrating a project form GF 3.1.2 (Eclipselink 2.3.2) to Payara 4.1.1.162 (Eclipselink 2.6.2). During the deployment of my war archive I get the following exception: [2016-05-10T15:58:35.406+0200] [Payara 4.1] [SEVERE] [] [] [tid:…
2
votes
1 answer

Java XmlPath Annotation with multiple Conditions

I have the following XML Schema:
Kevin
  • 785
  • 2
  • 10
  • 32
2
votes
3 answers

JPA best practice question - Updating one field only

My question is similar to Updating one field in JPA entity Basically I have an entity Foo which has some basic fields (enum, String, DateTime) and it has two other fields. One of them is a OneToOne and the other is a OneToMany implemented using a…
NBW
  • 21
  • 1
  • 2
2
votes
0 answers

eclipseLink 2.5/2.6 on android studio 2.0

I tried to use EclipseLink on android, but got the following error with eclipseLink 2.5. AGPBI: {"kind":"error","text":"Error converting bytecode to dex:\nCause: java.lang.RuntimeException: Exception parsing…
Dave
  • 759
  • 2
  • 9
  • 31
2
votes
1 answer

Weblogic 12c (12.1.3) and eclipselink 2.3.1 Getting a ClassCastException for Named Native Queries

Recently we migrated from weblogic 10 to weblogic12c. The application was working fine until we migrated to the new weblogic12c server. My web application is using JPA and eclipselink to fetch some information from the database. All other named…
Dinesh
  • 1,711
  • 2
  • 20
  • 41
2
votes
0 answers

Subqueries in select in eclipselink

According to EclipseLink documentation it supports subqueries in the select clause (even if JPA doesn't require it). When I try to use this feature in JPA Criteria API: myCriteriaQuery .multiselect(Arrays.asList(mySubquery, ...)) .where(...) there…
ragnor
  • 2,498
  • 1
  • 22
  • 25
2
votes
1 answer

EclipseLink Batch Fetch Hint Not Working For Two Fields

I'm using QueryHints in Spring Data JPA to use EclipseLink Batch Fetch with a type of IN. Ultimately, I need to use this around 30 fields but it doesn't seem to work right for 2 fields. Field A has a ManyToOne relationship and Field B has a…
DSS
  • 192
  • 9
2
votes
2 answers

How to find what version of EclipseLink my Eclipse Project is using?

I have a Maven jersey-quickstart-webapp Project I am developing in Eclipse. The project is a JERSEY REST backend with angularjs javascript frontend. I would like to know how to check what version of EclipseLink my project is using. Where can I find…
Tom O'Brien
  • 1,741
  • 9
  • 45
  • 73
2
votes
2 answers

JPA persist becomes slower and slower

This scenario uses a simple oneToMany relationship with cascade persist on both directions. Many: @javax.persistence.Entity(name="Many") public class Many { @javax.persistence.ManyToOne(cascade = CascadeType.PERSIST) protected One one; …
kupsef
  • 3,357
  • 1
  • 21
  • 31
2
votes
1 answer

Eclipselink and Postgresql batch writing

I have been working on a BulkSMS solution for one of my customers, and I have decided to use JPA (Eclipselink) as an ORM and the underlying database is PostgreSQL 9.5.1. My problem issue is that whenever I send a request with 65,000 records to be…
mousa alsulaimi
  • 316
  • 1
  • 14
2
votes
1 answer

SELECT distinct field in Querydsl

I would like to ask about how to make a SELECT Distinct on field in Querydsl 4. What is the best way to do this SQL request: SELECT DISTINCT ON (company_id, EXTRACT(MONTH FROM createddt), EXTRACT(YEAR FROM createddt)) id, createddt FROM…
Mohamed
  • 113
  • 1
  • 2
  • 7