Questions tagged as 'hibernate'

0
answers

javax.faces.el.EvaluationException: java.lang.NullPointerException

Galera, you are my last salvation. I get this error javax.faces.el.EvaluationException: java.lang.NullPointerException when I try to register a client. My development experience is small, I'm developing this small system as a college work...
asked by 27.10.2017 / 02:10
0
answers

Problem using spring with rest

I am doing a course that I downloaded from the net (Spring with rest and angular) to develop a personal project, however I am facing some problems that I can not solve and I did not find solution in the "father of the donkeys" (Google). > The...
asked by 19.10.2017 / 01:55
1
answer

tenant application for multiple users

Good my doubt and as long as the approach of creating a database in the following scenarios Multiple Database, a database created by user Multiple Schemas, well it would only have a single database, but each user would have their schema...
asked by 24.10.2017 / 04:08
0
answers

How do I prevent the Hibernate connection pool from throwing the connection limit exception?

I have a stateless DAO using JPA that uses the Hibernate connection pool to apply its transactions to the database. Whenever Hibernate entityManager starts, I have the following line in the console of my server: Hibernate connection poo...
asked by 07.09.2017 / 08:10
0
answers

JPA does not update children record [closed]

I have a problem with JPA which is as follows, I have the class ModeloEstoquePecas , where theoretically I need to delete everything first, which are the children records of class EstoquePecas , with the code below that I'll be putti...
asked by 24.08.2017 / 04:33
1
answer

query model.vo a solution with jpql and subqueryes

I have the following query in MySQL wanting to pass to JPQL and I am doubtful in the syntax: SELECT a2.produto , a2.descricao, a2.quantidade_recente, Soma from (SELECT p.codigoProduto, sum(p.quantidad...
asked by 30.06.2017 / 19:58
0
answers

how to use query with more than one field (.vo template) in a datamodel

I have the following query and am wanting to put this list with products and the summation in a datamodel list. public List<Filtro> listarProdutosDoGerenteRegional() { try { return manager.createQuery(...
asked by 28.06.2017 / 18:00
1
answer

Table names in Hibernate are created with lowercase letters

I'm trying to transform the following Entity into a table in Postgre using Hibernate @Entity @Table(name="Usuarios") public class Usuario implements Serializable { ... } The problem is that when the table is created, its name is created wit...
asked by 06.06.2017 / 15:07
1
answer

JPQL query help

I am trying to return a group query along with the product entity returning all the data from the product table and the sum of the quantity. I get an error that is as follows: Exception in thread "main" java.lang.IllegalArgumentException: Type...
asked by 27.06.2017 / 18:46
2
answers

Hibernate does not automatically create table in mysql

I'm studying Spring with a bit of Hibernate, where I stopped in a situation I can not get through. I've set up the hibernate code for creating tables in the database, but when I run the application it does not create. My template class:...
asked by 17.04.2017 / 21:15