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

Setting default allocation size for all entities?

I want to set the default allocationSize that is set by default to 50 to another value. Is there a way to do that? I'd prefer to do this with default JPA, but Eclipselink would also be ok. I don't want to specify the allocationSize in each Entity I…
Robert Franz
  • 418
  • 4
  • 14
2
votes
0 answers

Derby + EclipseLink + JUnit + Eclipse = ArrayIndexOutOfBoundsException

I'm using an embedded Derby database to unit test my service-layer using JUnit. This works fine when I run the tests in Eclipse or using Maven. But if I try to run the tests in the Eclipse debugger, the tests crash because of an…
Raedwald
  • 46,613
  • 43
  • 151
  • 237
2
votes
0 answers

What is wrong with the following code? It related to EclipseLink 2.1, JPA and Derby

following is an excerpt from my entity class public class PartyRole implements Serializable { @Id @GeneratedValue(generator = "IDGenerator", strategy = SEQUENCE) @SequenceGenerator(name = "IDGenerator", sequenceName = "IDGenerator", allocationSize =…
A j
  • 1,069
  • 2
  • 16
  • 29
2
votes
1 answer

Container-managed persistence contexts: transaction-scoped vs. extended - how to decide?

There's a lot of technical "blurp" out on the Internet, books and elsewhere where you can read a lot about how to setup container-managed persistence contexts etc., but none of the sources I've found deal with the much more difficult question: How…
Kawu
  • 13,647
  • 34
  • 123
  • 195
2
votes
2 answers

ClassCastException with GWT/RequestFactory on WebLogic

I'm setting up a GWT application based on GWT/RequestFactory on client side, and JPA/EclipseLink over WebLogic on server side. However, during development, everytime I change something on the server-side code (it can be an entity, the DAO, or even a…
foch
  • 1,039
  • 10
  • 21
2
votes
4 answers

JPA + StoredProcedureCall + object type IN parameter

I'm trying to do a simple thing: call stored procedure which have a object type parameter. This is what I have in db: create or replace TYPE TEST_TYPE AS OBJECT ( test_field varchar(100) ) and CREATE OR REPLACE PROCEDURE TEST_PROC ( PARAM1 IN…
czajah
  • 419
  • 4
  • 12
2
votes
1 answer

derby persistence.xml

What should be the property statement regarding the derby client driver in the persistence.xml e.g : When tyring to update the DB from Java I keep getting the exception…
dubi
  • 51
  • 3
  • 6
2
votes
1 answer

jpa libraries in Eclipse Indigo SR1

The Eclipse Indigo SR1 (on windows XP) has File/new/JPA project template etc. I see some 9 persistence .jar-s under eclipse/Plugins directory( i did download of Eclipse and unzipped the eclipse , then ran it) . yet project/java build…
dubi
  • 51
  • 3
  • 6
2
votes
2 answers

Flexible marshalling with JAXB

I'm hoping to have a flexible way of marshalling objects. A verbose version for single objects and a less-verbose version for multiple object versions. For example, consider my department model: GET /locations/1:
craig
  • 25,664
  • 27
  • 119
  • 205
2
votes
1 answer

EJB3 on Weblogic 10 - Timeout on first DB access

I have an EJB3 application which I deploy on various environments, namely Weblogic 10 for Windows with Apache webserver and Weblogic 10 for Linux with IIS webserver. I'm using EclipseLink as a persistence layer. The DB is always Oracle 9.2 on…
Alessandro
  • 601
  • 3
  • 11
  • 26
2
votes
1 answer

Does Eclipselink support queries containing regular expression?

I've seen that DBMS like MySQL supports query containing regular expressions. Does Eclipselink support this? I have to retrieve entities having some String attribute matching some regular expression as SELECT X FROM Person X WHERE X.name
Naveed S
  • 5,106
  • 4
  • 34
  • 52
2
votes
1 answer

Spring, Websphere, JMS and Eclipselink Issue

I have an application that runs inside of Websphere, and I am having an issue with persisting JPA entities. Previously, the application was setup with RESOURCE_LOCAL persistence units, with the Spring JpaTransactionManager, and transactions that…
noplay
  • 2,391
  • 6
  • 26
  • 33
2
votes
2 answers

JPQL Native Query using SUM and COUNT

I am trying to run the following code: public BigDecimal valuate(String searchTerms, String categoryPath) { Query query = em.createNativeQuery("SELECT SUM(maxBidAmount) / COUNT(maxBidAmount) FROM Item WHERE MATCH(title) AGAINST(':searchTerms')…
Kevin
  • 4,070
  • 4
  • 45
  • 67
2
votes
3 answers

How can I tell connection pool utilization in eclipselink

I am working on a eclipseLink backed project, I want to use internal connection pool with EclipseLink, but I don't know how can I see it really working before it goes online. I think I should enable logging for EclipseLink but I don't know what am I…
Lopakhin
  • 269
  • 1
  • 3
  • 16
2
votes
1 answer

JAXB-ElipseLink: Preventing marshalling of inherited property

Again i am having an EclipseLink 2.3 marshalling-usecase that seems to be quite trivial but not working as expected: I have an abstract base class which defines a property getX(). I have several child-classes derived from this base-class that…
quaylar
  • 2,617
  • 1
  • 17
  • 31