Questions tagged as 'hibernate'

0
answers

Java Hibernate help

Persistence.xml <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocati...
asked by 19.07.2017 / 23:45
0
answers

Problem with Hibernate and WildFly server

Hello. I have a project with Hibernate 4.3.x + PostgreSql + WildFly. But I can not run it. The following is the error: Iniciando WildFly Application Server WildFly Application Server iniciado Implantação inicial de WebApplication1 até C:...
asked by 05.08.2017 / 20:16
1
answer

help with nativeQuery

I tried to do the query uasndo expression constructors and jpql, but jpql does not eceita subqueryes and I'm trying to do with nativeQuery. Is it possible? I'm getting an error message. Would anyone know why? The query is as follows: Str...
asked by 07.07.2017 / 18:23
1
answer

Hibernate does not generate the database and the tables in mysql

I'm having problems with my project, about setting up the bank together with the tables. jul 06, 2017 7:19:21 PM org.hibernate.Version logVersion INFO: HHH000412: Hibernate Core {5.2.10.Final} jul 06, 2017 7:19:21 PM org.hibernate.cfg.Environ...
asked by 07.07.2017 / 00:30
1
answer

Unique Update Field with Hibernate

How do I treat a unique field when doing an update with hibernate. It displays the duplicate field msg. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '41987523699' for key 'UK_4yakf5d...
asked by 30.06.2017 / 14:37
1
answer

Doubt JPA 2.1 and Hibernate 5.2

I have some doubts with JPA 2.1 and Hibernate 5.2. The latest version of the JPA standard is 2.1. Right? Is it correct to say that I can implement an AP only with JPA without hibernate? What are the features of hibernate 5.2 that are outside the...
asked by 03.07.2017 / 22:23
1
answer

Hibernate auto relationship turning into json break

I'm using Hibernate to persist the objects in an embedded HSQLDB file. I've created a similar method from a "tester" to popular and fetch the persisted information. But when I look for the informations, in debug mode it's like my result is...
asked by 10.07.2017 / 14:25
0
answers

Hibernate: query performance drop after a few repetitions

I am developing a Farm Management system. One of the basic queries is to list the animals by type that are alive (% with%). Below is the method that performs this query. public List<T> findByInFarm(T model, boolean inFarm) throws DAOExce...
asked by 23.06.2017 / 16:10
1
answer

Configure hibernate.cfg.xml with DataSource configured in Wildfly 10

I'm trying to set up my hibernate to recognize the connection configured in Wildfly, I already tested the connection on the wildfly panel, it's 100% functional. The problem now is to make the application that uses hibernate preview the DS.     
asked by 23.06.2017 / 15:12
1
answer

Hibernate and object list

I'm developing my first application in java, desktop application with Netbeans and hibernate. I have tables membros and estadocivil . The member has a marital status. I mapped the classes using Hibernate and in the Members class...
asked by 21.06.2017 / 03:19