Questions tagged as 'eclipse-link'

3
answers

Hibernate vs EclipseLink

Both persistence frameworks implement JPA. 1 - Is there a difference between the two? 2 - Which is the best in performance? 3 - How do the two implement the same specification, after developing a complete application is it possible to c...
asked by 21.03.2017 / 15:34
1
answer

What is optimistic locking field of JPA

What is and what is JPA's Optimistic Locking Field? I noticed that this option exists for Eclipse Link and for Hibernate and this function is enabled when annotating a version attribute within an entity class, but I do not understand what its pu...
asked by 21.03.2017 / 14:44
1
answer

Error with persistence.xml and EclipseLink in glassfish

Hello guys I'm with this problem after I migrated the project to another machine, I am using GlassFish with EclipseLink in the database I use Postgres 9.4 if anyone has encountered this error might help me could not solve. I've re-done the wh...
asked by 04.11.2015 / 06:08
1
answer

Second Level Cache - JPA and EclipseLink

I would like to completely disable the JPA / EclipseLink cache, but I can not. I can disable the first level cache using: query.setHint("javax.persistence.cache.storeMode", CacheStoreMode.REFRESH) But the second level cache is not disabl...
asked by 11.09.2015 / 22:07
1
answer

@PreUpdate with @Transient - EclipseLink

I need an @PreUpdate method to be called when an @Transient attribute is modified. This @Transient will always be modified, so yes @PreUpdate would always have to be called. Since it will always have to be called, I looked for an option similar...
asked by 22.11.2017 / 19:13
0
answers

JPA Criteria - Using between with Subquery

   "The numbers at the beginning of the queries and the" criteria "were inserted to facilitate the explanation. (1 -...) (2 -...) (3 -...)" I need to do this in the JPA criteria: SELECT DISTINCT service.* FROM service AS service INNER...
asked by 06.12.2018 / 13:46
0
answers

JPA + EclipseLink - Lazy Loading with EntityManager closed

I'm using EclipseLink as a JPA provider in a Java SE project. I have already set up weaving correctly to allow Lazy Loading. Unlike Hibernate (which launches LazyInitializationException), EclipseLink can get the proxy of a LAZY relationship,...
asked by 19.09.2015 / 01:18
2
answers

How to do a search using jpa with searching for the foreign key

I am trying to perform a search with jpa, I have the following query: String jpql = "Select m from Medicamento m where m.usuario_id = ?1"; But this error occurs: Exception in thread "main" java.lang.IllegalArgumentException: An exception...
asked by 26.08.2016 / 01:34
1
answer

What would be equivalent to these two properties of persistence.xml in hibernate?

I have these two properties in eclipselink: <property name="eclipselink.logging.level.sql" value="FINE"/> <property name="eclipselink.logging.parameters" value="true"/> But I would like to see the same using hibernate ....
asked by 04.04.2016 / 01:45
0
answers

How does eclipse create a project? [closed]

   I want to understand how eclipse generates a project Which folders are required within the project directory? ex: src / What files it generates to identify a project eclipse? How to create an eclipse project without using the...
asked by 14.01.2016 / 20:34