Questions tagged as 'hibernate'

1
answer

Configure Spring applicationContext by taking advantage of other configuration files

I have the following hibernate.cfg.xml : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://www.hibernate.org/dtd/hibernate-configuratio...
asked by 27.07.2014 / 03:16
1
answer

An entity that is inherited persists

I have a Person entity that is inherited from another Administrator entity. In the database I already have data in the Person entity and I want to associate a Person Administrator . How can I do this? I'm using hibernate , an...
asked by 02.04.2014 / 20:00
1
answer

Problems with data modeling with Persistence.xml

I created a college application to create automatic tables by Hibernate with JPA but it gave some error in some tables, which were these; Catalog OrderDAO ProductDAO but is generating the following error, When I click on Catalo...
asked by 25.09.2014 / 01:13
2
answers

How to create a Postgresql stored procedure from a Java code

Searching the internet for a solution to create a database on a Postgresql server for my Spring project, I found the following topic in StackOverflow: link where the following Stored procedure exists for this task: DO $do$ BEGIN IF EX...
asked by 07.05.2014 / 16:01
2
answers

___ ___ erkimt Unable to build entity manager factory (JPA Hibernate) ______ qstntxt ___

I am trying to make a connection with Hibernate and JPA, but when trying to create the connection or persist some data it executes the following error:

  

Dec 04, 2018 2:02:45 PM org.hibernate.ejb.HibernatePersistence   WARN: logDeprecation HHH015016: Encountered to deprecated   javax.persistence.spi.PersistenceProvider   [org.hibernate.ejb.HibernatePersistence]; use   [org.hibernate.jpa.HibernatePersistenceProvider] instead. Dec 04, 2018   2:02:45 PM org.hibernate.ejb.HibernatePersistence logDeprecation WARN:   HHH015016: Encountered to deprecated   javax.persistence.spi.PersistenceProvider   [org.hibernate.ejb.HibernatePersistence]; use   [org.hibernate.jpa.HibernatePersistenceProvider] instead. Dec 04, 2018   2:02:45 PM org.hibernate.ejb.HibernatePersistence logDeprecation WARN:   HHH015016: Encountered to deprecated   javax.persistence.spi.PersistenceProvider   [org.hibernate.ejb.HibernatePersistence]; use   [org.hibernate.jpa.HibernatePersistenceProvider] instead. Dec 04, 2018   2:02:45 PM org.hibernate.jpa.internal.util.LogHelper   INFO: HHH000204: LogPersistenceUnitInformation   PersistenceUnitInfo [name: context ...] Dec 04, 2018 2:02:45 PM   INFO: HHH000412: hibernate Core   {4.3.0.Final} Dec 04, 2018 2:02:45 PM org.hibernate.cfg.Environment    INFO: HHH000206: hibernate.properties not found Dec 04, 2018   INFO: 2:02:45 PM org.hibernate.cfg.Environment buildBytecodeProvider   HHH000021: Bytecode provider name: javassist Dec 04, 2018 2:02:45 PM   org.hibernate.annotations.common.reflection.java.JavaReflectionManager    INFO: HCANN000001: Hibernate Commons Annotations   {4.0.4.Final} Dec 04, 2018 2:02:45 PM   org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl   configure INFO: HHH000402: Using Hibernate built-in connection pool   (not for production use!) Unable to build entity manager factory

My pom.xml

%pre%

My persistence.xml

%pre%

My Main class

%pre%     
______ azszpr348573 ___

I am trying to make a connection with Hibernate and JPA, but when trying to create the connection or persist some data it executes the following error:    Dec 04, 2018 2:02:45 PM org.hibernate.ejb.HibernatePersistence   WARN: logDeprecation H...
asked by 04.12.2018 / 18:06
1
answer

Entity attribute based on a field in another table - Hibernate

I have a microservice raised using Spring, RestFul and Hibernate. I would like to know how I can modify an attribute of this json microservice, based on a condition, obtained through a query to the bank. Below, a piece of code from my Enti...
asked by 28.11.2018 / 17:18
1
answer

Hibernate Does Not Delete

Good night guys ... I'm learning Hibernate and had a problem: I was able to insert, retrieve the DB data ... I had a setback that I corrected by adding the following command line in the RUN settings: --add-modules java.xml.bind But at th...
asked by 27.07.2018 / 03:07
1
answer

Error executing JSF page in Tomcat

Well, I have a problem here that is difficult to solve. I'm trying to list some disciplines on a JSF page, follow the code: DisciplineBean.java @ManagedBean(name="disciplinaBean") @SessionScoped public class DisciplinaBean { private...
asked by 06.01.2015 / 02:53
1
answer

Error when making Many to Many relation with Spring Boot

I am trying to make a Many-to-Many link between the usuario and permissao classes, using the hibernate as a reference. But when I try to generate a JSON file of class usuario the program loops and generates an unexpected f...
asked by 19.05.2018 / 00:21
1
answer

Difficulties Session Hibernate

My web application uses Hibernate 4.3 and does Connection Pool control using C3P0. Difficulties happen on a recurring basis and unfortunately I can not seem to find the problem that causes such errors. Here's one of the errors: org.hiber...
asked by 30.04.2018 / 13:40