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

Keep getting java.sql.SQLFeatureNotSupportedException error on my jpql

Keep getting this error when I try to fetch all records for an entity from the database. [err] javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.1.v20171221-bd47e8f):…
Prachi
  • 528
  • 8
  • 31
2
votes
1 answer

EclipseLink - Merge updates columns that haven't been changed

I've been using Eclipselink in my project for a long time, but today I came across a problem, and I can not solve it. The problem is this: at first I search my "Function" object in an instance of my program, after that in another instance I search…
2
votes
2 answers

Executing stored procedures in Firebird using JPA NamedStoredProcedureQuery

EntityManager em = getEntityManager(); EntityTransaction etx = em.getTransaction(); etx.begin(); Query query = em.createNamedQuery("login_procedure").setParameter("param1","user").setParameter("param2", "pw"); Integer result…
Alex
  • 8,245
  • 8
  • 46
  • 55
2
votes
3 answers

No suitable driver found for jdbc:mysql://localhost:3306/rom (Payara 5, Windows 10)

Believe me, I know this question has been asked many times and has gotten an answer many times, and these answers seemed to have worked for some users. I've spent many hours trying the various proposed solutions and, while they work on Linux…
William
  • 1,154
  • 1
  • 9
  • 15
2
votes
1 answer

JPA: Map a Map

i want to Map a map in JPA, but I get a Exception: My java-code looks like that: Issue.java: @ElementCollection @CollectionTable( name="ISSUE_EMPLOYEE", joinColumns=@JoinColumn(name="ISSUE_ID",…
CSan
  • 954
  • 1
  • 10
  • 25
2
votes
0 answers

Duplicate key value Exception when persisting OneToOne Relationship

I have three entity types, that have OneToOne relationships to each other. The relationship is mapped to a join-table. When persisting a trio of those, I get the following exception: DerbySQLIntegrityConstraintViolationException: The statement was…
kerner1000
  • 3,382
  • 1
  • 37
  • 57
2
votes
1 answer

JPA: Use several @NamedStoredProcedureQuery at one entity

I am using Stored Procedures in JPA (using EclipseLink). I annotate them at an entity class with @Entity @NamedStoredProcedureQuery( name = "myproc", procedureName = "SP_myproc", parameters = { @StoredProcedureParameter(mode…
eisenbahnfan
  • 74
  • 1
  • 7
2
votes
4 answers

JPA EclipseLink 2 query performance

APPLICATION and ENVIRONMENT Java EE / JSF2.0 / JPA enterprise application, which contains a web and an EJB module. I am generating PDF documents which contains evaluated data queried via JPA. I am using MySQL as database, with MyISAM engine on all…
Daniel Szalay
  • 4,041
  • 12
  • 57
  • 103
2
votes
1 answer

JAXB 2.x and Ant

I am using JAXB 2.1.2 with the MOXy implementation. To build my web app I am using Ant 1.7.1 and I am also using the package-info.java class to specify namespace stuff. All runs fine, except the package-info.java does not get compiled. in the…
basZero
  • 4,129
  • 9
  • 51
  • 89
2
votes
1 answer

Multiple logins of a persistence unit?

Hey guys I'm using eclipse link for JPA in my Java SE project. I'm using "jpa controller" classes for each of my tables in my databases(is this the correct way). I'm also providing an EntityManagerFactory for every "jpa controller class" so I can…
Drew H
  • 4,699
  • 9
  • 57
  • 90
2
votes
2 answers

autoincrement id is not reflecting in composite key using JPA

I have a below mapping @Entity @Table(name = "auctions") public class Auction{ . . @OneToMany(cascade = CascadeType.ALL, mappedBy = "auction") private List auctionParamValueList; . . } @Entity @Table(name =…
Sourabh
  • 4,545
  • 11
  • 39
  • 45
2
votes
1 answer

Dependency to EclipseLink vs org.eclipse.persistence.jpa

I wanted to use EclipseLink for Spring Boot in my Spring Boot project. I was able to configure everything. But when I was implementing I found one strange thing. I had to include EclipseLink as implementation for JPA in my pom.xml. My first try…
Adam
  • 884
  • 7
  • 29
2
votes
1 answer

EntityManager null in QuartzJob

i've this issue using EntityManager on QuartzJob instance: java.lang.NullPointerException at weblogic.persistence.CICScopedEMProvider.getEMForCurrentCIC(CICScopedEMProvider.java:35) at…
Innet
  • 459
  • 3
  • 5
  • 18
2
votes
1 answer

jpa avoid query

i have the next class @Entity @Table(name = "table_order") @IdClass(OrderPK.class) public class Order { /** Unique identifier of the currency code in which the transaction was negociated. */ @Column(name = "TRADECURRE", nullable…
sjdms265
  • 157
  • 2
  • 9
2
votes
1 answer

Should I use @NamedQuery annotation or addNamedQuery method?

Currently, the JPA entities that comprise my application have an @NamedQueries block that contains many @NamedQuery annotations. This works well but some of my entities have over 80 @NamedQuery annotations and are getting difficult to maintain. I…
Reed Elliott
  • 223
  • 2
  • 15