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

Disable eclipselink caching and query caching - not working?

I am using eclipselink JPA with a database which is also being updated externally to my application. For that reason there are tables I want to query every few seconds. I can't get this to work even when I try to disable the cache and query cache.…
James
  • 3,597
  • 11
  • 47
  • 57
2
votes
1 answer

JPA in Java SE vs Java EE performance

I'm using JPA/Eclipselink in Java SE (Oracle Java 7) and Java EE (Websphere Liberty) environments. I have a component which is called from both Java SE and Java EE (by component I mean the same source code), which executes JPA queries. (the Java SE…
krisy
  • 1,508
  • 1
  • 14
  • 32
2
votes
1 answer

java.lang.NoSuchMethodError: org.springframework.beans.BeanUtils.findPropertyForMethod

I am getting below error while trying to configure spring data in my applciation. I am using spring data and EclipseLink, along with spring-security and oauth2. SEVERE: Exception sending context initialized event to listener instance of class…
hutututu
  • 239
  • 1
  • 4
  • 11
2
votes
1 answer

Java JPA - Inner Join Query doesn't work

I'm currently having an issue using Java JPA with EclipseLink - this query: SELECT VAR_INPUT.* FROM VAR_INPUT INNER JOIN TYPE_VAR_INPUT ON VAR_INPUT.ID_TYPE_VAR_INPUT = TYPE_VAR_INPUT.ID_TYPE_VAR_INPUT WHERE…
Gaëtan Rouziès
  • 490
  • 1
  • 3
  • 16
2
votes
1 answer

Mapping ElasticSearch results to JPA Entities using JEST

I'm implementing a search function in my application, where I'm searching for records that are in my database. I'm using ElasticSearch for this and I know that I will have to keep the database and the indices in sync. I'll take care of that on the…
Gustavo Maia
  • 121
  • 5
2
votes
2 answers

JPA - Retrieve all Entity Classes

I need to have a List of clasess that are Persistence Entities, I need have Entity Information, using Reflection API of JPA I have the EntityManager, But I do not know if that is the way. I want to do a generic logging for my Entities using a…
jrey
  • 2,163
  • 1
  • 32
  • 48
2
votes
0 answers

Internal server error upon returning JPA entity with XML annotations

I have made a simple CRUD app for learning purposes that uses webservices (with jersey), EJBs and JPA (eclipse link + mysql). I've at first obviously made an entity class called User and tried to return it, after searching for it for example by ID…
2
votes
2 answers

Exclude Field in Class from JPA

I have an entity in JPA. I recently added a field to my entity. I do not want this field to be persisted. However, Eclipselink is complaining about it not being in the table (which it obviously isnt). How can I exclude this class from be looked at…
user489041
  • 27,916
  • 55
  • 135
  • 204
2
votes
2 answers

insert and get Query for Time as AM/PM in JPA using java

This is the question OR SELECT TIME_FORMAT( `locStart`, '%h:%i %p' ) FROM locationtimes. How could i achieve it using JPA These are my Database Table entries My java Entity class package models; package models; import util.MyConverter; import…
Ashish Ratan
  • 2,838
  • 1
  • 24
  • 50
2
votes
1 answer

JPA: will em.clear() after em.flush() change transactional semantics?

In JPA, is it guaranteed that the transactional semantics (=effects from the database point of view) of the following snippets are identical? Snippet A EntityManager em = ... List workList = ... for(Work work : workList) { doWork(work);…
MRalwasser
  • 15,605
  • 15
  • 101
  • 147
2
votes
2 answers

The state field path 'e.id' cannot be resolved to a valid type. Dynamic entity in orm.xml,

This simple SINGLE_TABLE inheritance hierarchy somehow fails when my application tries to access the inheriting entity RootFolderNode. The entities are defined as dynamic entities access="VIRTUAL", without a Java class backing. The PersistenceUnit…
leo
  • 3,528
  • 3
  • 20
  • 19
2
votes
1 answer

Migrate from native to EclipseLink persistence

My application is using Spring 2.5, and native TopLink 10g. I want to migrate my application from native TopLink to EclipseLink. Currently each DAO in my application extends TopLinkDaoSupport.java (in Spring 2.5), in order to use the #getSession()…
Sunny
  • 174
  • 7
2
votes
1 answer

Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long

i develop an application with swing i habe a database with few tables; these Tables are connected with foreign key When I try to run this application , i have the error; Exception in thread "AWT-EventQueue-0" javax.ejb.EJBException: EJB…
Doni
  • 23
  • 3
  • 5
2
votes
3 answers

JPA left outer join using CriteriaBuilder results in error: Partial object queries are not allowed to maintain the cache or be edited

I have the following entity relationships Product @Entity @Table(name="PRODUCTS") public class Product @Id @Column(name="product_id") private long productId; @ManyToOne @JoinColumn(name="EMP_NUMBER") private Employee employee3;…
Jacob
  • 14,463
  • 65
  • 207
  • 320
2
votes
1 answer

Lucene integration with EclipseLink

I am trying to use Lucene with EclipseLink, and was wondering if there are any good integration libraries out there? I have seen solar-flare, and it looks lime it might do what I want, but it's out of date (although i have an older version of…
user2524574
  • 109
  • 2
  • 10