Questions tagged as 'jpa'

1
answer

Error creating database with Hibernate and Spring MVC

I'm having a problem running the application. Error ... ERROR [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 58) Context initialization failed: org.springframework.beans.factory.UnsatisfiedDependencyEx...
asked by 16.12.2017 / 01:05
0
answers

Rollback while persisting entity with hibernate

I have an entity Product: @Entity @Table(name = "produto") public class Produto implements Serializable { private static final long serialVersionUID = 1L; private Long id; private Cliente cliente; private String nome; private B...
asked by 23.11.2017 / 21:08
2
answers

Persisting a relationship Spring boot

I have the following Entity classes Patients @Entity @Table(name = "pacientes", schema = "sau") public class Pacientes implements Serializable { private static final long serialVersionUID = 5776384003601026304L; @Id @Generated...
asked by 17.11.2017 / 00:04
0
answers

NullPointException using JSTL

Hello. Well, I'm having a problem trying to pull a list of users using a c: forEach. When requesting the list, a NullPointException is returned, which, although I understand the reason for the return, I can not identify why. Testing with anot...
asked by 17.11.2017 / 19:42
2
answers

What are the ways to avoid infinite recursion without using the JsonIgnore annotation in SpringBoot

I have a @OneToMany relationship between Produto and TipoProduto where TipoProduto can have multiple Produto s and a Produto can only have TipoProduto . I would like to list all Produto s...
asked by 30.10.2017 / 00:33
3
answers

Error persisting data in JPA

I'm following algaworks exercises from the java-ee-7-with-jfs-primefaces-and-cdi-2a-edicao module. When registering post I get the following error: WARNING: #{cadastroLancamentoBean.salvar}: javax.persistence.PersistenceException: org.hiberna...
asked by 01.11.2017 / 10:40
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

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