Questions tagged as 'hibernate'

1
answer

Change engine in the database

Good I'm doing an API, I have the classes Person , Requisitoria and Debt ; I'm using
asked by 22.06.2018 / 16:24
1
answer

INFINITE LOOP HIBERNATE APIREST

hi how I am currently doing a project with these technologies HIBERNATE (TO CREATE ENTITIES AND DEMAS) JPA (ETC. CONNECTIONS) JDBC (CONNECTIONS OF ANOTHER TYPE) SPRING MVC (TO CREATE THE DRIVER AND RETURN JSON) The detail is that I...
asked by 02.06.2018 / 17:27
1
answer

Remove these logs from Hibernate?

I'm doing a Java program with Hibernate, and these logs really bother me a lot. Does anyone know how to remove them? The letters in red.     
asked by 03.06.2018 / 00:39
2
answers

Error in Eclipse: Enum class not found

You see, I have a table called Seguro, with the following characteristics. package es.makigas.hibernate.modelo; import java.io.Serializable; public class Seguro implements Serializable{ public enum Sexo{ Hombre, Muj...
asked by 27.02.2018 / 17:19
1
answer

HIBERNATE JPA POSTGRESQL, error in Persistence.xml

My persistence.xml file looks like this: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/...
asked by 09.01.2018 / 14:31
1
answer

Error using the getCurrentSession method of SessionFactory

I create a factory session in the following way: private final SessionFactory sessionFactory = new Configuration().configure("hibernate.cfg.xml").addResource("com/jegab/persistenceEntities/Categoria.hbm.xml").buildSessionFactory(); When wan...
asked by 17.09.2017 / 01:13
1
answer

Prevent web portal from skipping the login

I have a portal created with JSF + Primefaces + Hibernate, I have my login screen and when checking credentials redirect you to a datatable. When I logout to the portal, it directs me to the login (so far so good) but if I click the back butt...
asked by 14.06.2017 / 23:34
1
answer

Listen in hibernate?

I have this class the problem arises when I persist an instance does not recognize the listener and does not perform the action before persisting.     
asked by 27.06.2017 / 04:56
1
answer

Execute sql in java

I have the following code: <bean id="hibernateTemplate" class="org.springframework.orm.hibernate4.HibernateTemplate"> <property name="sessionFactory" ref="sessionFactory" /> </bean> My class: public class DataBaseSer...
asked by 16.06.2017 / 09:40
1
answer

Cascading with filter

Good morning, I'm new to Hibernate and I have a doubt with cascading erasures. I want to know if it is possible that the cascade deletion is made based on the value of a field, I explain. I have the entities Country (id, name) and Province...
asked by 10.08.2017 / 15:03