Questions tagged as 'jpa'

0
answers

Error on REST and Spring time query

I'm trying to make a query via GET by passing parameter id, date, and time. If I pass ID and Date, it works, but when I pass the time, I get a return error. Field error in object 'tagsHourFilter' on field 'starttime': rejected value [22:27:02...
asked by 08.10.2018 / 19:02
0
answers

Query with multiple Ids and date with JPA and Spring via RESTApi

Good morning, I'm trying to set up an appointment with Spring JPA and Rest where I can insert several IDs and datainicial and datafinal. The query works if I only put an ID with the dates. The code looks like this: @GetMapping("/search") publi...
asked by 02.10.2018 / 16:50
0
answers

Error creating tables with relationship and JPA

Hello, I'm trying to create two tables with flyway + Spring + SqlServer + JPA, very simple thing even just to pass the time and I'm having an error that I can not understand because if I execute the same direct in Sql it works. I have the follow...
asked by 25.09.2018 / 16:51
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

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
1
answer

Field Number (3.0) in Oracle database for Java

I have a table in an Oracle 11g database with a field of type NUMBER(3,0) In a Spring project, I have the following repository: @Repository public interface TipoPropriRepository extends JpaRepository<TipoPropri, Byte> { } Th...
asked by 23.08.2018 / 22:08
0
answers

Doubts the transitions of an object between Beans JSF

I have a login class that instantiates a CLIENTID attribute in the session after the client logs in LoginBean.java public void efetuarLogin() throws IOException{ cliente = clientePU.clientePorEmail(email); System.out.println(email);...
asked by 16.08.2018 / 20:43
0
answers

Insert / get multiple tables without Id

Good afternoon guys, I have a problem affecting me a few days already. The situation is as follows, I have a simple relationship: There are tables person, street, neighborhood, city, state, parents all mounted from Hibernate classes using JPA. I...
asked by 24.07.2018 / 21:19
0
answers

Consume data from a WEBSERVICE SOAP

I'm a trainee and I'm trying to consume a webService SOAP, but I do not understand how I can access it, someone can help me with this question please, I looked in google ja but the examples I saw are totally different from what I have, Langua...
asked by 18.07.2018 / 19:19
1
answer

Multiple bags Exception / Searching multiple collections with JPA

I'm having a problem with JPA when it comes to making a query. I want to query Entity A that has a% of Entity% B and% of Entity% C (I want to query Entity A by bringing Entities B and C into the same List ). > When I try to execute th...
asked by 11.07.2018 / 04:54