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

Hibernate ok, but ElipseLink fails with: the attribute [x] of class [Y] is mapped to a primary key column in the database updates not Allowed

I have a very simple console-based (not application-server-deployed) JPA program which I test against both EclipseLink and Hibernate providers. All the code is JPA so I figured I'd be able to switch providers without a problem. However the program…
Marcus Junius Brutus
  • 26,087
  • 41
  • 189
  • 331
2
votes
1 answer

"is not a known entity" error from EclipseLink

I'm seeing a strange behavior in Weblogic (10.3.3) when using EclipseLink (2.0.2). Here is what I do. I use Maven to compile a project in which I use JPA (1.0.2). In this project, module "A" depends on module "B". "B" contains a bunch of Entities (…
Amir Keibi
  • 1,991
  • 28
  • 45
2
votes
2 answers

Integrate elasticSearch with EclipseLink

I have to implement a tool which allows me to search in my database. So, I have been looking for something and I met with with elasticSearch. It supposed this tool works fine with eclipselink, but I could not find any good tutorial or documentation…
Ignacio Giagante
  • 364
  • 1
  • 5
  • 19
2
votes
1 answer

JPA, compound key with foreign keys + persist oneToMany

I'm trying to do something with JPA that'll use a lot on a project but I'm stuck. I have 2 entities + a kind of "glue" entity, I'll call them ClassA ClassB Glue I want to add a new ClassA with new Glues set in it's list, ClassB's already…
Alexandre Jacob
  • 2,993
  • 3
  • 26
  • 36
2
votes
1 answer

Spring framework Tomcat LoadTimeWeaving

I am using tomcat as my webserver and would like to use the fetch = FetchType.lazy annotation for all my @OneToOne annotations but spring reverts my lazy settings give me eclipselink warnings : Reverting the lazy setting on the OneToOne or ManyToOne…
Warz
  • 7,386
  • 14
  • 68
  • 120
2
votes
1 answer

Adding the latest EclipseLink version to a Netbeans project?

I am developing JSF applicationi with JPA using EclipseLink as the persistence provider using Netbeans. The default version of EclipseLink is 2.0 with Netbeans 7.1, but I badly need the new addition of create-or-extend-tables for…
Buddhika Ariyaratne
  • 2,339
  • 6
  • 51
  • 88
2
votes
2 answers

@OneToMany relation when target has a composite key?

Hi i want to have a one to many relation for one of my projects, but the List is never populated. I have a parent source class @Entity @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) public class ParentJob { @Id @Column(name = "ID") int…
tobi.b
  • 224
  • 2
  • 12
2
votes
1 answer

Invalid insert order when use @Inheritance JPA attribute

I have Eclipselink persistence provider tuned on DB2 DB. Where is 3 tables which simplified definition are listed below: CREATE TABLE root ( id CHAR(32) NOT NULL PRIMARY KEY, rec_type VARCHAR(20) ); CREATE TABLE derived ( id…
user641652
  • 65
  • 1
  • 7
2
votes
1 answer

How to limit memory usage of JPA Batch queries?

I'm currently using JPA (Eclipse link) batch queries to read an object from the database. Each object has several sub-collections, also reflected via JPA. I use batch queries for the performance they offer, however there is a downside (perhaps…
Rich
  • 3,722
  • 5
  • 33
  • 47
2
votes
1 answer

Unmarshalling nested collection via @XmlPath MOXy annotation

Given the following XML structure: x
... 1 2 3
Thilo-Alexander Ginkel
  • 6,898
  • 10
  • 45
  • 58
2
votes
0 answers

Can Spring Security 3.1 use EclipseLink persistence unit?

I'm using Spring Security 3.1 with Spring 3.2 and with EclipseLink JPA. I'm configuring Spring Security to use users and groups from a MySQL database. All the Spring documentation and tutorials says to use
Tim
  • 616
  • 7
  • 23
2
votes
1 answer

EclipseLink JPA Object is not a known entity type

I have a strange problem with eclipseLink and an object which I want to persist. I have one Object (KeypointListImpl) that stores another object KeypointImpl in a List. Persisting a keypointImpl objects works great but if I try to persist a…
Hans Sperker
  • 1,347
  • 2
  • 15
  • 37
2
votes
1 answer

JPA 2.0 Eclipselink OrderColumn support

I was reading over the docs regarding Eclipselink's support for @OrderColumn. It looks like this only applies to List and not Set. The reason I ask is because I have a ManyToMany bi-directional relationship (using a join table) which is a Set and is…
NBW
  • 1,467
  • 2
  • 18
  • 27
2
votes
1 answer

EclipseLink and Spring 3 Web MVC: how should I integrate both technologies?

I'm currently learning EclipseLink and Spring 3.0 MVC: I wrote a simple standalone application using EclipseLink : it uses a META-INF/persistence.xml file and it reads and writes data from a mysql database. I also wrote a simple 'HelloWorld'…
Pierre
  • 34,472
  • 31
  • 113
  • 192
2
votes
1 answer

Eclipselink not saving update to a field inside an Entity

I am using Eclipselink and I have a JPA Entity that is basically a byte array of gzipped data stored as a blob in the database. However, this data is wrapped in a class that manages the byte array and can decode it correctly (GzipByteArray). I used…
David I.
  • 4,747
  • 3
  • 26
  • 34