Questions tagged as 'jpa'

2
answers

Maintenance problem with JPA query

I have the following packages and classes. When I'm going to do this JPA query, I need to pass all the class's fully qualified name (as it's in the example) because JPA can not find it if I just pass its name, no matter the class works. Is...
asked by 25.10.2017 / 18:34
1
answer

Problem with binding in Spring MVC

I have the following field in the form <div class="form-group col-md-2"> <form:label path="horarioInicio">Horario inicio</form:label> <form:input id="horarioInicio" path="horarioInicio"...
asked by 01.10.2017 / 20:37
2
answers

Target Error Unreachable, identifier 'ClienteBean' resolved to null

System error: Error message:    Caused by: javax.el.PropertyNotFoundException: /index.xhtml @ 22.72   value="# {ClientBean.client.name}": Target Unreachable, identifier   'ClienteBean' resolved to null at   com.sun.faces.facelets.el.TagV...
asked by 28.09.2017 / 18:06
2
answers

Hibernate does not close connections / sessions in DB

I'm having a problem using Hibernate. Each time I call a method that performs a query or update in the database, hibernate opens a session in the database and then does not close. I have tried everything, but really every time it is called the e...
asked by 15.09.2017 / 04:52
0
answers

JPA with "detached entity passed to persist:"

Hello, I have a problem because I use an intermediate table to save the IDs of 2 other tables. I'm not sure what to do with JPA, but I'm not sure what to do, but I'm not sure how to do this. instance.setDtCriacao(new Date(System.currentTimeMill...
asked by 30.08.2017 / 16:16
1
answer

Error in setting up postgres with wildfly

I've done the postgresql configuration: C: \ wildfly-10.1.0.Final \ modules \ system \ layers \ base \ com \ postgresql \ main I added the files: module.xml postgresql-9.4.1208.jre7.jar The bank has version 9.6 and drive 9.4, can the pr...
asked by 09.09.2017 / 05:54
0
answers

Update Hibernate

The situation is as follows, when you put the <property name="hibernate.hbm2ddl.auto" value="update"/> property, nothing else works, no query works anymore. the log always ends with : jul 27, 2017 8:28:18 PM org.hibernate.resource...
asked by 28.07.2017 / 01:33
0
answers

Problem with Hibernate and WildFly server

Hello. I have a project with Hibernate 4.3.x + PostgreSql + WildFly. But I can not run it. The following is the error: Iniciando WildFly Application Server WildFly Application Server iniciado Implantação inicial de WebApplication1 até C:...
asked by 05.08.2017 / 20:16
1
answer

Problems with CDI + Weld on Wildfly

I'm trying to create a EntityManagerProducer and it seems like in the examples found on the internet something very simple, but it's not being. Then it concludes that I'm doing something wrong following my coding and configuration. Ah...
asked by 30.06.2017 / 19:06
1
answer

Relationship JPA, Spring, Angular,

I have a customer registration and I want to associate this customer with an equipment relationship but it is not saving the relationship. In the model layer of the client class I did so @OneToMany(cascade = {CascadeType.ALL } ) @JoinC...
asked by 31.08.2017 / 17:00