Questions tagged as 'hibernate'

1
answer

Configuration datasource

I have a java application running in wildFly 8 and using Sql Server, the problem I'm having at the moment is that the application comes back to me saying that it was not possible to open the connection, I checked the code and all the features wh...
asked by 26.02.2018 / 14:53
0
answers

Does CPF Hibernate Constraint not accept valid CPF?

I'm trying to run the Hibernate CPF validation constraint, but it just seems to reject valid CPF. The same test using the Email constraint normally works : EmailValidator validator = new EmailValidator(); validator.isValid("[email protected]", n...
asked by 26.01.2018 / 12:07
0
answers

Is there an entity's way of belonging to a user in hibernate

I'm looking for a simplified way of linking a bank entity to a specific user, who has registered, so that you do not need to set the field at the time of registration. Is there any simplified way to do this? The biggest problem of putting a f...
asked by 13.12.2017 / 23:31
1
answer

Pass value from jTextField to NamedQuery

I have some jTextfFields where I need to send to DAO its values, these values are arriving correctly in DAO , however the return of NameQuery is being null . There is no error, only the return is null , con...
asked by 03.12.2017 / 13:37
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
1
answer

Delete a Limit of Hibernate Records (Limit)

I'm migrating my WEB application to the Hibernate framework, however I have several SQL requests with very specific parameters. In one of these requests, I always need to include a new record in the database, delete the first 20...
asked by 10.11.2017 / 14:55
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
1
answer

Problem Hibernate 4.3 with Glassfish 3.1

My application with Hibernate 4.3 normally runs with Glassfish 4 , installed along with NetBeans IDE. However, the server where I need to deploy the application has Glassfish 3.1 . On this server the application is n...
asked by 21.11.2017 / 19:19
1
answer

Write method has no action and link of Dependent x Driver is not done

When developing a simple application where the dependent is bound to its responsible who is a driver, when I click to create the bind and write dependent nothing happens, only the following message is posted without interrupting the application....
asked by 28.10.2017 / 19:30