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

How to reset the database for Arquillian UI tests

I have a default Java EE 7 application with JPA/Eclipselink. I want to write some UI tests with Arquillian Drone/Graphene. My testsuite is "working". I can click through the application and make some asserts. But: I want to create multiple tests.…
2
votes
0 answers

EntityManagerFactory Creation is slow for large Schemas

I am trying to create a Java application that will migrate an old schema to a new schema. I've chosen Java for the following reasons: I need to perform data sanitation. Business logic needs to be done to default previously null/bad data. We are…
CodeMonkey
  • 160
  • 9
2
votes
2 answers

How to specify the cardinality of a @OneToMany in EclipseLink/JPA

I'm trying to impose a @Oneto7 association. I'd have imagined an attribute that specifies the target many value, but have found none. If there is no such attribute, how else, in JPA/EclipseLink would one achieve it?
simpatico
  • 10,709
  • 20
  • 81
  • 126
2
votes
1 answer

DML operations through JPA criteria/JPQL and JPA cache

JPA 2.1 provides support for performing delete/update DML operations through the JPA criteria API using CriteriaDelete and CriteriaUpdate respectively. Given below a very simple example that performs an update operation to the associated database…
Tiny
  • 27,221
  • 105
  • 339
  • 599
2
votes
2 answers

Eclipselink generated canonical metamodel doesn't extend base metamodel from another jar

I created two Maven projects using Netbeans 8.0.1 to illustrate a problem: common1 and common2 (jars). common1: package pck1 @MappedSuperclass public class Entity1 implements Serializable { @Basic(optional = false) @Column(name = "val") …
ksv
  • 21
  • 3
2
votes
2 answers

Collection wrap elements in plural name of actual type in JAXB

I have a Response class which contains some basic attributes and a wildcard Collection. @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class Response { private String approved; private String errorCode; …
isah
  • 5,221
  • 3
  • 26
  • 36
2
votes
0 answers

Locking in JPA/EclipseLink (Postgres 9.1)

I refresh an entity with locktype PESSIMISTIC_WRITE. Tab1 tab1 = em.find(Tab1.class, id, LockModeType.PESSIMISTIC_WRITE); em.refresh(tab1, LockModeType.PESSIMISTIC_WRITE); I have 3 tables: public class Tab1{int id;String name;Tab2 tab2;} public…
icit
  • 21
  • 4
2
votes
1 answer

EclipseLink MOXy not marshalling subgraph fields annotated with @XMLAttribute

The question title is self explanatory. I could replicate this issue in the example found over here: http://blog.bdoughan.com/2013/03/moxys-object-graphs-inputoutput-partial.html If you just change @XmlNamedObjectGraph( name="simple", …
Dojo
  • 5,374
  • 4
  • 49
  • 79
2
votes
1 answer

Evaluating JPA providers: Market share of Hibernate/EclipseLink?

I'm struggling to find some data as to the (estimated) number of installations/user base/market share of Hibernate and/or EclipseLink. This information would help in interpreting numbers like '# of bug reports opened' or '# of S/O questions' per…
JimmyB
  • 12,101
  • 2
  • 28
  • 44
2
votes
1 answer

JAXB EclipseLink Moxy: cycle is detected in the object graph

I experience a strange behavior while marshalling an object graph with bi-directional relationships. The error message is: Exception [EclipseLink-25037] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd):…
dima
  • 75
  • 1
  • 10
2
votes
1 answer

Using EclipseLink (MOXy) in Eclipse

I'm writing a Java program that uses JAXB to create XML files from a given XSD and am using Eclipse for the first time. I have also downloaded EclipseLink to use within Eclipse as I want to use MOXy as my JAXB provider. Unfortunately, I'm not sure…
user3572079
  • 135
  • 1
  • 2
  • 12
2
votes
0 answers

How to set up EclipseLink (or other JPA implementation) with a Minecraft Bukkit plugin?

so i'm trying to use EclipseLink ORM with a Bukkit plugin. I know there is already a ORM built-in to Craftbukkit (Ebean) but this one doesn't match my needs, it's too limited for entities Inheritance. That's why I turn to EclipseLink. The problem…
Tlokuus
  • 197
  • 2
  • 8
2
votes
5 answers

No [ManagedType] was found for the key class

I am using JPA, H2, EclipseLink, Java Config (no xml). My problem is that I am getting this No [ManagedType] was found for the key class error below. It suggests adding false to my…
Robert Mark Bram
  • 8,104
  • 8
  • 52
  • 73
2
votes
0 answers

camel case table/column name translation with JPA, H2, EclipseLink, Java Config (no xml)

I am using Spring-JPA, H2 and EclipseLink Java config (i.e. no xml) and want to achieve with camel case translation for table/column names. For example, I want to @Entity MyTable to translate into MY_TABLE. I have seen an example:…
Robert Mark Bram
  • 8,104
  • 8
  • 52
  • 73
2
votes
1 answer

EclipseLink generates duplicate primary keys on an Oracle DB

I am using EclipseLink 2.4.2 (in combination with Spring, but I don't think it has anything to do with our issue here) and we had a few times the following exception: org.springframework.transaction.TransactionSystemException: Could not commit JPA…
Guillaume Polet
  • 47,259
  • 4
  • 83
  • 117