Questions tagged as 'spring-jpa'

0
answers

How to use join in tables with JPA? [duplicate]

I have two tables, one is called project and the other is called employee, I already have them mapped, but I need to have a third table with the name of EMP_PROJ equal to the wikibooks Java Persistence , I made a few attempts but did not suc...
asked by 17.09.2018 / 19:09
0
answers

Returning entities according to search using Predicate

My name search is not working, somehow it is not passing Predicate . When I make a request at: localhost: 8080 / citys? name = 2 You will have the same entities as: localhost: 8080 / citys Note: my column name is city 1,...
asked by 30.08.2018 / 19:37
0
answers

Get a REFCURSOR with JPA 2.1

I'm running a Stored Procedure in Postgre using JPA 2.1 I need to return REF_CURSOR only that an error occurs and I've been trying to resolve it without success. I already use procedures being called by JPA but not to return a cursor I though...
asked by 10.07.2018 / 21:52
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

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

Creating and Editing in Spring Framework

I recently started learning Spring from the Thymeleaf template engine for displaying the data. However, I have been facing some problems that I can not solve: At the time of editing the Star Wars Movie entity, I can not retrieve the "Release...
asked by 03.04.2018 / 19:14
0
answers

Error Postgresql schema + Spring Jpa + @Query QuerySyntaxException: #### is not mapped

I have the following problem. My entity: @Entity @Table(schema = "esquema",name="tabela") public class Exemplo{ @Id private Integer exemploid; @ManyToOne @JoinColumn(name = "attid") private Atributo att; ... } My...
asked by 15.03.2018 / 14:25
1
answer

Float with null value Spring

I have an application with Spring Data. A Call the findAll () method of Spring, there are null values in the database. When doing the set of the object the field comes with null value by triggering the error message: Can not set float field br.c...
asked by 29.12.2017 / 19:39
1
answer

UpperCase in CriteriaBuilder

I have the following query with CriteriaBuilder CriteriaBuilder cb = manager.getCriteriaBuilder(); CriteriaQuery<Escola> cq = cb.createQuery(Escola.class); Root<Escola> root = cq.from(Escola.class); cq.select(root)...
asked by 11.10.2017 / 13:37
0
answers

Error org.hibernate.dialect.FirebirdDialect does not support identity key generation

This error appears when I save an entity to the database. I've set up the Entity class and the Repository in several ways, but the error remains. I'm using Firebird 2.5. The table automatically increments the id column by Trigger. I ask fo...
asked by 15.09.2017 / 13:32