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

Oracle NVL function equivalent in JQPL in EclipseLink (Version 2.1.3)?

I do this JPQL query SELECT e FROM Expediente e WHERE e.fechaBaja is null ORDER BY e.idSituacion ASC, e.idExpediente ASC but when e.idSituacion is null, eclipseLink not return this registry. How could i do this query with oracle…
Ibram
  • 75
  • 1
  • 1
  • 7
2
votes
3 answers

JPA select creates many requests to db, performance

I'm new to JPA and I wrote simple JPA selects for my web service. I was using classic SQL statements before. It was great, I knew how to get solid speed, but I'm working with 3 different databases in 5 different projects now. So I thought that…
user1063364
  • 791
  • 6
  • 21
2
votes
2 answers

Java ORA-01034: ORACLE not available

My problem is in Exception Block I have shown,I can connect using GUI(PL/SQL developer) but my Eclipsedlink is getting exception while getting connection using Web Application. Please help me. Thanks in Advance. I am using ojdbc14.jar, I am getting…
sunleo
  • 10,589
  • 35
  • 116
  • 196
2
votes
1 answer

Eclipselink - allocationSize property for TableGenerator

I am using EclipseLink for a small project to record user activities. I have a class that captures details about the activity and I am using the table generator strategy to generate the primary key ids for that class. The issue I am facing is that…
2
votes
1 answer

What includes EclipseLink internal optimization via weaving

I am new in EclipseLink and just right now I am getting know it step by step. Right now I am working on performance optimizations via weaving inb order to use lazy loading for ***ToOne relationships, fetch groups for partial loading of entity…
Simeon Angelov
  • 470
  • 4
  • 18
2
votes
1 answer

EclipseLink static weaved entities breaks remove of an entity operation

I successfully performed static weaving in EclipseLink-2.4.0 with eclipselink-staticweave-maven-plugin 1.0.3 , but when I also run integration tests. going through all layers in the system, they breaks. In startUp() method I create it's created an…
Simeon Angelov
  • 470
  • 4
  • 18
2
votes
1 answer

Avoid CHAR-trimming when using eclipselink

I have some Oracle-tables where some of the PK-fields are defined as CHAR(9), and all values are stored with padding. Thus, I have to retrieve all objects with space-padding in the key-fields. However, when EclipseLink reads the data into the…
2
votes
1 answer

JPA Query sometimes returns incomplete result although the database is correct

I'm seeing some weird behavior with my web service. I am using jersey for JAXRS and eclipselink for JPA. I suspect the issue is somewhere with JPA. To keep it short, I have 2 entities: History and Challenge. @XmlRootElement @Entity public class…
Catalin Morosan
  • 7,897
  • 11
  • 53
  • 73
2
votes
2 answers

Handling NULL values in @DiscriminatorColumn

I have a legacy MS SQL Server 2000 datatabase I am trying to map with JPA (EclipseLink to be precise). I have a table "CONTACT1" with a text field "KEY1" which can be either 'Contact' or 'Asset', and I am using: @Table(name =…
thedayofcondor
  • 3,860
  • 1
  • 19
  • 28
2
votes
1 answer

EclipseLink MOXy 2.5.0 snapshot incompatability requiring attribute to be added to proporder

Everything was working fine with my maven enabled project. But when I rebuilt it today tests started to fail withe error the property or field count on the class org.musicbrainz.mmd2.DiscList is required to be included in the propOrder element of…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
2
votes
2 answers

JPA with EclipseLink and Java SE

After exporting the project jar file to the fileserver the creation of the entitymanager of jpa does not work anymore. There is following details: I use EclipseLink from Glassfishv3 Project I downloaded EclipseLink 2.4... from the website.…
Hasan Tuncay
  • 1,090
  • 2
  • 11
  • 30
2
votes
3 answers

Explicit delete on JPA relationships

I am a bit confused about managing relationship in JPA. basically I have two entities with a One to Many relationship A configuration can have have a one or many email list associated with it. @Entity public class Config { …
Mark Estrada
  • 9,013
  • 37
  • 119
  • 186
2
votes
1 answer

Eclipselink 2.4 + JPA + ManyToMany with additional column

I'm developing a student manager application in Java with JPA entities provided by Eclipselink. I'm trying to implement a many-to-many relationship between two entities for a while, but I ran into some weird exceptions. My implementations are based…
nothingam
  • 165
  • 1
  • 12
2
votes
2 answers

In JPA, why does CriteriaBuilder let me build unsound predicates between unrelated types?

I am curious as to why it is possible, with the CriteriaBuilder class of JPA 2, to create such queries. Suppose I have a User class with a persisted String called name as attribute. Why can I write this? CriteriaBuilder builder =…
Jean-Philippe Pellet
  • 59,296
  • 21
  • 173
  • 234
2
votes
1 answer

Eclipse link simple join

How I can make a simple join query in eclipselink? I whant to receive ArrayList; For example, I have two entity: public class A implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) …
Terence
  • 69
  • 1
  • 11