Questions tagged as 'hibernate'

1
answer

Hibernate Duplicating Records

I'm new to using the Hibernate Framework and so I'm having a hard time resolving an issue. I'm using a relationship between objects as follows: @Entity @Table(name = "PEDIDO") public class Pedido implements Serializable { @Id...
asked by 19.12.2017 / 18:10
0
answers

ManyToMany include other fields

Hello, I have a ManyToMany relationship between envio and carro , and I would like to understand how to save in the same table, which is created through this relationship, the entity id Local . > Entidade Sendin...
asked by 07.12.2017 / 00:32
1
answer

Update a selectOneMenu (method in the bean)

Well I'm trying to get a selectOneMenu to populate another selectOneMenu and update a field, but I still do not quite understand how to do it. classes: package model; import java.io.Serializable; import java.util.List; import javax.persis...
asked by 17.11.2017 / 21:58
1
answer

How to point through Login, which database the system should connect to via Hibernate

I'm developing a JAVA system with JSF, PrimeFaces and Hibernate with Mysql database. In this system the user must inform the login the bank that wants to connect (User, password and bank). The problem is that when the user calls the Login screen...
asked by 21.11.2017 / 21:02
0
answers

Select only a few columns of mapped objects with Hibernate

How can I select only a few fields from a related object? How it works (catching everything): List<Participante> participantes = this.entityManager.createQuery("SELECT a " + " FROM Participante a WHERE a.pe...
asked by 07.11.2017 / 12:23
2
answers

Persistence with inheritance, one-to-one relationship and manual primary key

I am developing a web heritage project to finish my degree. I'm using Java (IDE: Spring Tool Suite), Spring, Hibernate and Mysql. I'm having a data modeling problem that I can not solve: An Equipment class must have an asset number a...
asked by 07.10.2017 / 22:47
1
answer

I can not display the Spring error message

I'm trying to validate some fields with annotations, but I can not bring the messages to the jsp page: User.java mport java.util.Calendar; import javax.validation.constraints.Email; import javax.validation.constraints.NotNull; import jav...
asked by 27.09.2017 / 16:50
1
answer

Name [name] is not bound in this Context. Unable to find [jdbc]

In the hope of improving access performance in DB, I started to implement a pool of connections within my Web Application. But whenever I go to give a lookup in the application I get the following error    javax.naming.NameNotFoundException:...
asked by 28.09.2017 / 18:12
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
1
answer

Error trying to validate @CPF and @CNPJ with Hibernate jSf2

Good evening I have a project of a system in JavaEE with JSF2 Primefaces. I am using the @CPF and @CNPJ mappings of hibernate, in the same attribute. But it is giving error "WARN: HV000129: EL expression '$ {value}' references an unknown propert...
asked by 21.09.2017 / 02:53