Questions tagged as 'hibernate'

0
answers

Json, Hibernate, Spring boot

I'm having 2 situations that should do the same thing but do not: package com.example.demo.entity; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.ObjectIdGenerators; import java.util.ArrayLis...
asked by 01.06.2018 / 21:08
1
answer

Jasper with JPA connection

I'm in a Java Desktop project using JPA, just to issue some reports where I'm using jasper. The reports have sql queries the user interface will only pass parameters to the data filtering. I found it difficult to get the connection so in a qu...
asked by 16.05.2018 / 04:40
0
answers

Hibernate Query with setParameters

Hibernate is ignoring my data from a Map when it is null. If I hedge with setParameter("nome",valor) and the value is null it works, does anyone know how to solve it? Here is the code: public List selectList(String sp, Map par...
asked by 09.05.2018 / 20:34
1
answer

Relationship of one column to several

I have an entity class of Medical name, in which it has an IDMedical column. It relates to the Attendance entity class, which in turn has a MedicalID column, which would be a foreign key of that first. There is also in this table, Attendance,...
asked by 18.05.2018 / 18:32
2
answers

Understand the use of generics in an abstract class DAO Hibernate

Hello, I'm starting to develop a web application with spring + hibernate framework, I started with an example that contained the following class: import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.SessionFacto...
asked by 24.04.2018 / 22:10
1
answer

Map relationship between tables without foreign key

I have two tables in postgresql: schema1.imovel idt_imovel | int cod_imovel | string nome_imovel | string etc... schema2.declaration idt_declaracao | int cod_imovel | string status | string etc... The two tabl...
asked by 27.04.2018 / 14:20
0
answers

Application Multi-tenancy Spring-mvc

Good evening guys, I've been trying to develop a multi-tenancy application with spring mvc for two weeks, but I only think spring boot, but without success. I wonder if anyone can help me. I want to make an application using spring-mvc where I c...
asked by 07.04.2018 / 06:49
0
answers

Treat link drop with Hibernate JPA timeout database

I need to treat link crash of the application with the database in addition to keeping a low timeOut, since the default in my tests is 15 seconds.    Failure: Caused by: org.hibernate.exception.JDBCConnectionException:   Error calling Driver...
asked by 26.04.2018 / 00:29
1
answer

Hibernate Persist error

I have a simple system for opening / querying calls. I'm having trouble typing a new call. I started using Hibernate and I have a problem with "persist" to add a call to a certain queue of calls. Below the codes and log: Calling Class...
asked by 02.04.2018 / 18:24
2
answers

'javax.persistence.RollbackException' received while invoking action list '# {}

I inform the values on the page, but the values are not persisted in the bank. it is as if my page did not send the values to the controlling classes. Yes the values are reported however, the error is when the values are persisted. I do not know...
asked by 23.02.2018 / 19:02