Questions tagged as 'eclipse-link'

0
answers

Unexpected behavior in unidirectional @OneToMany generation (additional FK columns being created)

Below are the two entities with the relationships in a unidirectional way: CustomerService.java @Entity @Table(name = "customer_service") @Multitenant @TenantDiscriminatorColumn(name = "tenant_id", discriminatorType = DiscriminatorType.IN...
asked by 30.03.2015 / 01:57
1
answer

Doubt regarding join with multiple tables

I have a sales class and it receives many products (manyToOne) and client (oneToMany) and would like to put everything together into a join to make a report with just the information you want. I tried to venture to implement but gave 500 Erro...
asked by 28.04.2018 / 17:58
1
answer

Bring all table records with jpa and eclipselink

Well, I have a question here at JPA. Today I have a method to fetch the UFs by ID, as in the example below: public Uf consulta(Integer id) { EntityManager em = getEM(); Uf uf = new Uf(); try { em.getTransaction().begin();...
asked by 15.07.2017 / 02:34
1
answer

How to insert only some of the attributes

I'm using JPA with eclipse link, I wanted to insert only some data in the database, some of the attributes do not need to save, how could I do this?     
asked by 13.08.2016 / 06:57
0
answers

Can not create instance for class: [...] EclipseLink, JPA, JavaDB

I'm trying to create a project with JPA + EclipseLink + mysql. After instantiating my CandidatoService, I get the following error: com.sun.faces.mgbean.ManagedBeanCreationException: Não é possível criar instância para·a classe: bean.Candidatos...
asked by 16.11.2018 / 17:35
0
answers

ERROR: missing FROM -clause entry for table "tX" when using LEFT join - Eclipselink and PostgreSQL

I'm getting ERROR: missing FROM-clause entry for table "t3" when trying to use the following JPQL: SELECT primeira FROM PrimeiraClasse primeira LEFT JOIN primeira.segunda.terceira.quarta quarta ON (quarta.quinta = primeira.quinta) ORDE...
asked by 08.10.2018 / 20:43
2
answers

JSF EclipseLink - I can not write information to the MySQL database

I am using JSF in a college subject and the teacher has passed an activity. But I'm not able to write information from a form. The connection is done, I can perform up to JPQ queries direct from Netbeans, but when I try to write information ente...
asked by 09.09.2018 / 02:06
0
answers

EclipseLink - Merge updates columns that have not been changed in the database

I've been using Eclipseelink 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 l...
asked by 09.05.2018 / 14:52
1
answer

Mount List mapped with @ManyToOne only with some objects

Is it possible to assemble 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 class Curso { @Id @Co...
asked by 25.05.2017 / 20:57
1
answer

JPA Eclipselink - Trigger SQL SERVER

I'm having a problem with a trigger created in SQL SERVER. When I insert the data in the table that initiates the direct trigger in SQL SERVER the trigger works normal, however when done the insertion by JPA it presents an error and of the rollb...
asked by 18.06.2016 / 17:47