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

Required Derby DataSource property databaseName not set

After unsuccessfully trying to switch to Postgresql from Derby using a Glassfish4 server, I wanted to switch back to my previous Derby based web app. But when I tried to deploy my app the following error appeared: [2014-10-20T23:13:36.297+0200]…
sthor69
  • 638
  • 1
  • 10
  • 25
2
votes
1 answer

javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean

I am trying to delete the data record of a particular candidate...locally it is working..but when I am deploying it in USA server ..it is showing…
suganya
  • 135
  • 3
  • 14
2
votes
4 answers

Maximum size for query collection parameter in JPA 2.1 / EclipseLink 2.5.2

Is there a maximum size for a query collection parameter in JPA 2.1 / EclipseLink 2.5.2 (connecting to mysql 5.6, if that matters)? e.g., what is the maximum allowable and/or recommend size for ids in the following code, to ensure performance and to…
XDR
  • 4,070
  • 3
  • 30
  • 54
2
votes
1 answer

Database not being updated after commit()

I have a method that persists lots of rows on the database, it's something like this: private EntityManager em; @PostConstruct public void init() { Map props = new HashMap(); props.put(PersistenceUnitProperties.JTA_DATASOURCE,…
Leonardo Jines
  • 360
  • 5
  • 17
2
votes
0 answers

Hibernate to Eclipselink, PostgreSQL and UUID

Here's what I had to write to get UUID working as a primary key, with full UUID types (on all ends) in hibernate. Since this relies on some Hibernate specific code, what would I have to do to convert this code to work on eclipselink? package…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
2
votes
2 answers

EclipseLink generated SQL doesn't include pagination

(My environment: Windows 7 x64 and Server 2008, EclipseLink 2.5.2, I've tried the following with JTDS and the MS JDBC driver, and with MS SQL Server Express 2008 and 2012.) I'm doing a paginated query in a table with anywhere from 5-50 million…
user497587
  • 45
  • 9
2
votes
1 answer

Managing Multiple Database Connections

I've been struggling with this problem for days, Here is the scenario: I have several databases, one for each of my customers, all of them with the same structure(same tables and columns), so my application needs to decide at runtime with which…
Leonardo Jines
  • 360
  • 5
  • 17
2
votes
2 answers

Using connection pool

I'm developing a web-app java with vaadin and spring like container and eclipse link like persistence framework. Now I want to use an connection pool inside my application. I read something on google my I counfused yet. This is my application…
Skizzo
  • 2,883
  • 8
  • 52
  • 99
2
votes
0 answers

StackOverflowError while running the arquillian test cases with wildfly server

Sometimes (not always) I am getting a stack overflow error while running the arquillian test cases on wildfly server. 2014-09-04 18:06:58,258 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-4) HV000001: Hibernate…
2
votes
2 answers

@ManyToOne(fetch=FetchType.LAZY) lazy loading not working

I am working with JPA 2.1 (EclipseLink 2.5.1) and JBoss 7.1. I've define very simple JPA entities: @Entity @Table(name="APLICACIONES_TB") public class Aplicacion implements Serializable { @Id @Column(name="COD_APLICACION_V") private long…
Eduardo
  • 1,169
  • 5
  • 21
  • 56
2
votes
0 answers

Persistence provider not found

everyone. I'm new to JPA 2.0. I'm using maven and eclipse, as well as eclipse link. I have this in my persistence.xml
Nacho321
  • 1,911
  • 7
  • 33
  • 55
2
votes
1 answer

Batch Fetch is not working in EclipseLink

Consider this simple association: @Entity public class Employee { @OneToMany(fetch=FetchType.LAZY) private Set
addresses; } Using this code the addresses are not fetched in the result: Query query=entityManager.createQuery("select…
Thunder
  • 2,994
  • 1
  • 24
  • 19
2
votes
0 answers

EclipseLink: select from base entity and filter by child fields with InheritanceType.JOINED

I have the following set-up @Entity @Table(name = "FOO") @Inheritance(strategy = InheritanceType.JOINED) @DiscriminatorColumn(name = "FOO_TYPE", discriminatorType = DiscriminatorType.STRING, length = 20) @DiscriminatorValue("FOO") public class…
Nikola Kolev
  • 1,239
  • 3
  • 17
  • 25
2
votes
2 answers

Eclipselink OptimisticLock causing deadlocks

We have an enterprise application running on WL 12c using eclipselink as the deafult JPA provider. MS SQL server 2008 is the backend database There is an entity on which i have used the following definition . the entity doesnt have any relationship…
2
votes
0 answers

EclipseLink 2.5.2: does @ReadOnly imply @Cacheable?

In EclipseLink 2.5.2, if an @javax.persistence.Entity is annotated as @org.eclipse.persistence.annotations.ReadOnly, is there any benefit to also annotating it as @javax.persistence.Cacheable, or is @Cacheable automatically implied by…
XDR
  • 4,070
  • 3
  • 30
  • 54