Questions tagged as 'jpa-2.0'

0
answers

JPA failed to initialize a collection of role I can not solve

Well, I'm trying to make a select and I'm just making this mistake, I know what the error means, but these classes are not god's, and FK goes there and then it's in an infinite loop, I do not know what else is missing to work right or if you hav...
asked by 06.09.2018 / 20:50
0
answers

Failure with JPA EclipseLink-4002

I'm new to Java. I'm trying to create an example of JPA. src / META-INF / persistence.xml      <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/meubancodados?autoReconnect=true&amp;useSSL=false&...
asked by 03.09.2018 / 15:02
0
answers

Spring Tools Suit - Extension for creating meta model

Hello, I was reading an article where author creates a meta-class class to work with strongly typed queries. I would like to know if there is any extension or plugin for the Spring-Tools-Suite (STS) IDE that automatically creates metamodel cl...
asked by 27.05.2018 / 12:45
0
answers

org postgresql util PSQLException ERROR syntax error at or near auto_increment in a JSF project

What could be the problem? 2018-04-30 14:50:08,218 [http-nio-8080-exec-8] WARN org.hibernate.ejb.HibernatePersistence - HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; us...
asked by 30.04.2018 / 19:58
0
answers

Springboot - JPA - does not migrate relationships in entity and relationship diagram

I'm creating a rest app using Springboot, JPA and as Mysql database. It works fine but it has something strange when I enter the database. I used the Workbench to create the relational entity diagram above the schema generated by JPA, but it...
asked by 08.05.2018 / 04:38
0
answers

Error calling Driver # connect in a JSF project

Notice the error; 2018-04-30 06:51:29,699 [http-nio-8080-exec-2] INFO org.hibernate.Version - HHH000412: Hibernate Core {4.3.6.Final} 2018-04-30 06:51:29,701 [http-nio-8080-exec-2] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.pr...
asked by 30.04.2018 / 11:58
0
answers

How to execute procedure call from bank with parameter with JPA

How do I execute a Stored Procedure call from the database I have the following stored procedure in the database, and I want to execute your call by passing the projId parameter, using JPA to get the total cost of the Project Ba...
asked by 19.04.2018 / 23:55
1
answer

Hibernate + JPA 5 - Java Web

I need help with the following problem. When running my java web project in Glassfish the hibernate at every run try to recreate my tables. Minha Entity. @Entity @Table(name = "Estados") public class Estado implements Serializable { @Id @...
asked by 09.04.2018 / 16:57
0
answers

Failed to persist in JPA

Good evening! Can anyone help me to understand this problem? I am testing an application and when the application tries to persist a front field with a larger number of characters than the one supported in the bank field the error is returned:...
asked by 18.02.2018 / 01:02
0
answers

Difficulty working with JPA Criteria!

I'm trying to create some sort of queries with JPA's Criteria instead of hibernate, but I'm having some difficulties; I would do so if I were to use hibernate; if (filtro.getEstado() != null) { criteria.add(Restrictions.eq("...
asked by 28.01.2018 / 16:18