Questions tagged as 'hibernate'

1
answer

Criteria bringing duplicate data from hibernate to JSF

I'm getting duplicate data or sometimes missing data until, how can I fix it? This is my DAO: public List<Produto> filtrados(Filtro filtro) { try { Criteria criteria = criarCriteriaParaFiltro(filtro); criteria.se...
asked by 25.06.2016 / 03:34
0
answers

java.lang.NoSuchMethodError: org.jboss.logging.Logger.debugf. Glassfish 4.1, HIbernate 5.2, Spring 4.3 [closed]

I can not upload an application in Glassfish 4.1. It seems to me that the problem is the dependency org.jboss.logging I already added it to the project in version 3.3.0 but the error persists. The strange thing is that the same application "ru...
asked by 28.12.2016 / 16:52
0
answers

Hibernate JPA hangs

When executing the persistence to generate the tables in the database, netbeans blocks the outputs in this    Oct 26, 2016 3:11:05 PM org.hibernate.dialect.Dialect INFO:   HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect I ca...
asked by 26.10.2016 / 19:16
1
answer

Subquery in select clause with Criteria JPA

I was researching how to make a subquery in the select clause with Criteria of a select of this type: SELECT tabela1.*,tabela2.*, (SELECT MAX(tabela5.AtrDatatabela5) FROM .Tabela3 AS tabela3 INNER JOIN Tabela4 AS tabela4 ON tabela4.AtrId...
asked by 29.03.2016 / 14:23
1
answer

MySQL - Foreign key in ON DELETE NO ACTION but executes ON DELETE CASCADE

I'm developing a system using Apache , Hibernate e MySQL . But I have a problem while deleting parent entries from a foreign key. The database should prevent the deletion, but it deletes the parent entry and all associated with it, t...
asked by 03.04.2016 / 00:23
1
answer

Native query count does not return the same type in SQL Server and H2

Hello, I have a native query that does a simple count of records in a table: public Long contar() { String sql "SELECT count(*) FROM Order"; Query query = query.createNativeQuery(sql); // return... } In the system, we...
asked by 07.08.2018 / 21:47
1
answer

Registration with Validation

Currently my system has Person and Time, a person can already create a Team, defining some attributes (name and passwordTime). Now, I aim to create a "Enter Time" method where any person will enter an existing team by passing the ID and Passw...
asked by 25.07.2016 / 14:02
0
answers

C3P0 Connection Pool

I have the following properties in my Hibernate XML for Connection Pool taken from the internet: <property name="hibernate.c3p0.min_size" value="4"/> <property name="hibernate.c3p0.max_size" value="4"/> <property name...
asked by 24.05.2016 / 13:54
0
answers

Error in the project downloaded from github with JBoss 7.1.1

I downloaded a github project (Project fj25-financas-web - Caelum) and added this project to JBoss 7.1.1. When I run it, these errors occur: 16:07:15,515 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start...
asked by 23.11.2015 / 19:16
1
answer

JPA / Hibernate problem with concurrency and persistence in JRE

I'm working on a project to create a simple server running on Java SE. I am using JPA + Hibernate to perform persistence, however concurrent routines are a problem. I'm wasting a lot of time trying to solve the problems generated by Hibernate wi...
asked by 16.04.2015 / 05:50