Questions tagged as 'hibernate'

0
answers

Hibernate 3 does not work with maven and glassfish 4.1.2

I have an application created with maven (jsf 2.2, hibernate 3.3.0) and deployed in glassfish 4.1.2. when I change a record it gives the following error: javax.faces.el.EvaluationException: java.lang.NoSuchMethodError: org.hibernate.event.PreU...
asked by 03.10.2018 / 20:13
0
answers

Error removing a record with children in hibernate

I want to remove a parent record and remove its children together, but removing the parent record has the following error    20: 26: 25,703 INFO [stdout] (default task-5)   org.hibernate.HibernateException: Illegal attempt to associate with  ...
asked by 10.10.2018 / 01:44
0
answers

Hibernate: Error after Entity change and warning when cleaning and building

Good evening After changing an entity that inherits a @MappedSuperclass my code started giving error. When trying to clean and build it the following warning appears: Note: Hibernate JPA 2 Static-Metamodel Generator 5.1.12.Final warning: Th...
asked by 10.10.2018 / 03:25
0
answers

Error performing "FIND" with Hibernate - Spring MVC

When trying to use the method below in the DAO class: public boolean validaMatricula(String matricula) throws SQLException { Usuario usuario = manager.find(Usuario.class, matricula); if(usuario != null) { return true; }...
asked by 27.09.2018 / 17:37
0
answers

Hibernate does not create table

My databases are created in Oracle. I am not able to reverse engineer when I run Hibernate Code Generation Configurations in Eclipse. When I click on RUN nothing happens. On the Exporters tab I selected the first 3 items. cfg.xml <?xm...
asked by 22.09.2018 / 22:15
0
answers

javax.servlet.ServletException

I'm doing a basic user registration with Servlet . When I click the register button I get the following error page (everything has been reviewed and is working perfectly, I believe it is something related to Hibernate, but nothing I hav...
asked by 19.09.2018 / 05:57
0
answers

Hibernate are not generating tables in MySQL database

<?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:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence h...
asked by 21.09.2018 / 20:02
0
answers

Error when deploying a java application with postgres

Expensive. I created a small web application using postgres. However, when I run the eclipse, it runs smoothly. But when I export the .war file and try to deploy it on the tomcat server, it returns the error below: Caused by: javax.persi...
asked by 19.09.2018 / 16:48
0
answers

I can not resolve the No Persistence provider for EntityManager named

I researched in several forums, made all the suggestions I found and still could not solve. I do not know if it's because of the archetype of the project, but it's the default I'm using. Can someone please help me, I would be very grateful. M...
asked by 11.09.2018 / 21:06
2
answers

Hibernate query error could not get a field value by reflection

I have two entities: Profession and Specialty. When I select the profession, I would like it to return to me all the specialties that that particular profession has. When I do the search it causes me the error: Advertência: #{administrad...
asked by 04.09.2018 / 03:10