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

JPA converter from DATE to java.time.LocalDate not applying in Glassfish 4.1

I have made a converter such that when I read DATE fields out of the database, it should be able to coerce them to java.time.LocalDate objects. However, when I try to do so, it gives me this error: The object [3/16/17 12:00 AM], of class [class…
FatalCatharsis
  • 3,407
  • 5
  • 44
  • 74
2
votes
1 answer

EclipseLink - adding indexing to Postgress

I would like to add indexing to my existing Entity, exacly on specific column. Following by documentation i wrote something like that: 1.first way @Entity @Table(name = "potatoe", schema = "mySchema") public class Potatoe { (...) @Index(name =…
newOne
  • 679
  • 2
  • 9
  • 27
2
votes
1 answer

storedProcedure.registerStoredProcedureParameter with out Parameter ref cursor with Jpa Eclipse Link

I am new to Jpa i want to execute Procedure I have Code as Followes private static final String PERSISTENCE_UNIT_NAME = "todos"; private static EntityManagerFactory factory; public static void main(String[] args) { factory =…
user7059863
  • 61
  • 2
  • 13
2
votes
0 answers

Communication failure detected when attempting to perform read query outside of a transaction

Sometimes I met following exception while use JPA to call stored procedure. My connection is maintained by WebLogic connection pool. <2017-03-24…
Jackie Dong
  • 813
  • 1
  • 5
  • 20
2
votes
2 answers

How to define the EclipseLink annotation for the following?

I'm relativly new to the world of EclipseLink, I've been reading through the documentation, however I'm having a real problem trying to represent the following table. PTY_NO | REF_OBG 6544 45663 6544 1234 6544 97543 6544 …
Rich
  • 3,722
  • 5
  • 33
  • 47
2
votes
1 answer

How to compute the disassembly of a Java class at _runtime_?

I'm trying to investigate whether dynamic weaving is being applied to my classes. First, here's some context… It is very easy to prove whether static weaving is occurring. You use javap -c MyCoolEntity to see the disassembly of some Java class…
Birchlabs
  • 7,437
  • 5
  • 35
  • 54
2
votes
1 answer

How to make EclipseLink automatically print violated constraints if ConstraintViolationException occurs

I have Spring backend with few modules with few tens of controllers and services. When somewhere in this services occurs ConstraintViolationException in log file I see only common exception, and there is not specified which exactly constraints are…
2
votes
0 answers

How do I pass a Java SQL array to JPA native query as a parameter?

I would like to pass an SQL ARRAY to Native query as Parameter. I was able to pass SQL Array to Stored Procedure successfully. But I can't get the same thing to work with normal native SELECT statement. I am using JPA 2.5, Eclipse Link, Oracle DB. I…
2
votes
2 answers

Show generated SQL in toplink in eclipse

I am using EclipseLink libraries in eclipse (at dev time) and deploy on TopLink, I need to show the generated sql statement. I am using the following persistence.xml:
Muhammad Hewedy
  • 29,102
  • 44
  • 127
  • 219
2
votes
1 answer

JPQL inconsitency between hibernate and eclipselink

I have the following query that works under Hibernate but not under eclipse: select o from Organisation o where o.code=:code and o.type=:type It is not clear to me why this is the case, I was hoping someone else could elaborate for us. The error…
2
votes
1 answer

Hibernate and EclipseLink inconsistent behavioiur

The following (simplified version of our) code passes our JUnit tests under Hibernate, but not under EclipseLink. What is needed to make this work under EclipseLink? public static void store(EntityManager em, String a, String b) { Entry…
2
votes
1 answer

How to add missing columns in a multi-schema based multi-tenant web app using eclipselink

I'm developing a multi-tenant web app with "Shared Database/Separate Schemas" approach using java, jpa(eclipselink), mysql. My persistence file looks like:
2
votes
0 answers

Using Websphere Liberty JPA (EclipseLink) to Store XML DB2 data type

I'm trying to save and retrieve a database row using JPA in Websphere Liberty. Database engine is DB2, the table has a XML data type column, and this column is mapped as a String in JPA. This worked well using OpenJpa, but moving to EclipseLink…
Dario
  • 41
  • 4
2
votes
1 answer

JPA Many to Many Relationship Creates Two Join Tables

I am trying to create a many-to-many relationship between User and FileObject classes with the assumption user can access many file objects and file object can be accessed by many user and one-to-many relationship as one user can own many files but…
Ihsan Haikal
  • 1,085
  • 4
  • 16
  • 42
2
votes
0 answers

Unable to cast Object to Pojo class

In my struts2 project, I am using EclipseLink to call SQL Server procedure using StoredProcedureQuery.My problem is after getting the result list and casting it to the corresponding POJO class, it shows compilation…
Boban Thomas
  • 53
  • 1
  • 10