I tried to do this, however, but it is returning null in the query. Anyone have any ideas how I can resolve this?
public List<Pessoa> filtrar(Pessoa pessoa) {
Session session = sessionFactory.getCurrentSession();
Criteria...
After much research, without success, I decided to post my doubts.
I'm using JPA / Hibernate and I have two tables: a Pessoa and a Funcionário .
The error occurs when I save my data, the foreign key pessoa_id is empty,...
I have a class, Vendor, that is extended from class Pessoa .
In method listarFornecedores of class FOrnecedorDao :
public List<Fornecedor> listarFornecedores() {
session = HibernateUtil.getSessionFactory().openS...
I am using Hibernate Validator with the @CPF annotation. It is validating beauty, the problem is that my system may have the invalid CPF field (null) and Hibernate does not accept this. I put the field with @Collumn (nullable = true) but...
Hello, I have an entity named menu on my system.
A menu can be a child of another menu and so on.
The table has the following structure:
Theentityismappedasfollows:@Entity@NamedQuery(name="Menu.findAll", query="SELECT m FROM Menu m")
public...
I'm using JPA and Hibernate 4.3.11 when running a simple application
To test the connection to Firebird 2.5 Hibernate is generating
A temporary table with the HT _ start.
Example:
created the Customer table and generated
Hiberna...
I have a problem with a cadastral panel.
There is a store network registry in which I am taking care of the implementation. I can normally insert and remove dataTable items, but this is not reflected in the base in the burning process - when...
A system uses a separate database for each client, let's say I have 500 clients, in which case my database server would have 500 data bases , for example:
cliente1
cliente2
cliente3
In the Hibernate configuration, a Factory...
Hello
I have the following scenario, I have a hibernate criter where I get the highest value from a column when I pass a branch code as a parameter. Example: There are only two branches if the code is 1 is a value, if 2 is another value that...
I would like some help. I'm developing a system using jpa-hibernate, jsf and primefaces. Whenever I run the application the following appears on the console:
0 [http-8080-2] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3...