Most voted "eclipse-link" questions
21 questions
Sort by count of
-
5
votes3
answers1598
viewsHibernate vs Eclipselink
Both persistence frameworks implement JPA. 1 - There is a difference between the two? 2 - Which is the best in performance? 3 - As the two implement the same specification, after developing a…
-
2
votes1
answer277
viewsSecond Level Cache - JPA and Eclipselink
I would like to totally disable the JPA/Eclipselink cache, but I’m not getting it. I can disable the first level cache using: query.setHint("javax.persistence.cache.storeMode",…
-
2
votes0
answers157
viewsJPA + Eclipselink - Lazy Loading with closed Entitymanager
I am using Eclipselink as JPA preview in a Java SE project. I have correctly configured Weaving to allow Lazy Loading. Unlike Hibernate (which launches Lazyinitializationexception), Eclipselink…
-
2
votes1
answer530
viewsPersistence.xml and Eclipselink error in glassfish
Hello guys I’m with this problem after I migrated the project to another machine, I’m using Glassfish with Eclipselink in the database using Postgres 9.4 if anyone ever came across this error could…
-
2
votes1
answer365
viewsWhat is Optimistic JPA Locking Field
What is and what is the "Optimistic Locking Field" of JPA? I noticed that there is this option for Eclipse Link and Hibernate and this function is enabled when annotating a version attribute within…
-
2
votes1
answer111
views@Preupdate com @Transient - Eclipselink
I need a @Preupdate method to be called when a @Transient attribute is modified. This @Transient will always be modified, so yes, @Preupdate would have to be called every time. Since it will always…
-
2
votes0
answers161
viewsJPA Criteria - Using between with Subquery
"The numbers at the beginning of the consultations and the "criterias" were inserted to facilitate the explanation. (1-...)(2-...)(3-...)" I need to do this on JPA criteria: SELECT DISTINCT…
-
1
votes0
answers69
viewsUnexpected behavior in generation @Onetomany unidirectional (additional FK columns being created)
Below follows the two entities with unidirectional relationships: Customerservice.java @Entity @Table(name = "customer_service") @Multitenant @TenantDiscriminatorColumn(name = "tenant_id",…
-
1
votes0
answers31
viewsHow does the eclipse create a project?
I want to understand how the eclipse generates a project Which folders are required within the project directory ? eg: src/ What files does it generate to identify which is a project eclipse ? How…
-
1
votes1
answer212
viewsWhat would be equivalent to these two persistence.xml properties 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’d like to…
-
1
votes2
answers1470
viewsHow to search using jpa with searching for foreign key
I am trying to perform a search with jpa, I am with the following query: String jpql = "Select m from Medicamento m where m.usuario_id = ?1"; but this error occurs: Exception in thread "main"…
-
0
votes1
answer50
viewsHow to insert only some of the attributes
I am using JPA with eclipse link, wanted to insert only some data into the database, some of the attributes are not necessary to save, as I could do this?
-
0
votes1
answer144
viewsJavax/persistence/Persistence problem using JPA with CXF
I am facing an error when I try to consume a web service that is using JPA(Eclipse-link) to insert data into the database. Classes Entity : @Entity @Table(name = "gato") public class GatoPersistente…
-
0
votes1
answer287
viewsJPA Eclipselink - Trigger SQL SERVER
I’m having a problem with a Trigger created in SQL SERVER. When I insert the data into the table that starts Trigger directly in SQL SERVER Trigger works normal, however when performed insertion by…
-
0
votes1
answer349
viewsBuild List mapped with @Manytoone only with a few objects
It is possible to mount a list in a class with only a few objects? @NamedQuery(name = "Curso.Aprovados", query = "select cur from Classificacao cl JOIN cl.candidato ca JOIN ca.curso cur") public…
-
0
votes1
answer360
viewsBring all table records with jpa and eclipselink
Guys, I have a question here at JPA. Today I have a method to search the Ufs by ID, as in the example below: public Uf consulta(Integer id) { EntityManager em = getEM(); Uf uf = new Uf(); try {…
-
0
votes1
answer38
viewsDoubt regarding Join with multiple tables
I have a sale class and the same receives several products(manyToOne) and customer (oneToMany) and would like to join all in a Join to make a report with only the desired information. I tried to…
-
0
votes2
answers101
viewsJSF Eclipselink - I can’t write information to Mysql database
I am using JSF in a college subject and the teacher has passed an activity. But I am not able to record information from a form. The connection is made, I can even perform JPQL queries straight from…
-
0
votes1
answer49
viewsPaging and Research - Springdata with Sqlserver2008
Hello, I have a problem in my application and I wanted to see if anyone here can assist me. I’m developing a system with Springboot (Springdata, etc. ) on top of a base Sqlserver2008. Due to force…
-
0
votes1
answer36
viewsJPA+Eclipselink Composite Key with Object
I am creating a class of stocks where the key of the table will be the product code+local, so that the system can control various stocks of the same product in different locations. I created an…
-
-1
votes1
answer181
viewsJPA Eclipselink - No entity update
I have a relationship in the JPA of Client 1 -> 0.. * Loans. So I have in the client class a set Loan List to make the Onetomany. It turns out that when I add a customer he updates the normal…