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...
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...
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...
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...
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...
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...
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...
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:...
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...