Questions tagged as 'jpa'

0
answers

Match items in a List of Objects

I do not know if the title is the most appropriate. I have an object that is a List of Objects (extracted from a BBDD using JPA) which contains 3 objects that in turn are Lists; 2 of type String and 1 of type Double. To try to be more exact, the...
asked by 21.06.2018 / 14:43
1
answer

Why does JPA return the related records in FETCH LAZY?

I'm using JPA and I'm having problems retrieving records from tables that contain foreign keys, my DB is wide but I'll simplify the problem, in a typical REGION - > CITY - > COMUNA REGION Table Primary Key REGION Tabl...
asked by 07.06.2018 / 17:20
1
answer

Securizando the controllers do not work the roles, lets enter without being admin admin

I have the Spring Security functionality configured and in the database I have a user role and I define in SecurityConfiguration @PreAuthorize ("hasRole ('ROLE_ADMIN')") so that only the ADMIN role has access to the path @ GetMapping ("/ contact...
asked by 24.05.2018 / 18:28
1
answer

Fill Combo in JSF and JPA

I am new using JSF and JPA. My question is, how can I make a combo that is filled with a table Clientes , appear the clients that I have registered and not the object index? This is the code: <h:selectOneMenu id="clienteid" v...
asked by 20.06.2018 / 17:09
0
answers

Error java.lang.IllegalArgumentException: An instance of a null PK has been incorrectly provided for this find operation

Create a java application that uses jpa and works correctly. Then create an executable with the Launch4j and later an installer with Inno Setup. I install in the machine where I made the development and it works. when wanting to install it in an...
asked by 22.05.2018 / 16:49
0
answers

JPA persistence 2.0 vs 2.1

I do not know why, but my JPA application with v2.1 persistence.xml does not work for me if I'm not connected to the internet, and instead with v2.0 it does not matter if I have a connection or not. Has anyone happened to you? < persistenc...
asked by 10.05.2018 / 23:30
0
answers

Hibernate, format numeric field

How can I indicate with JPA that a field that is integer has this format "00001". That is, 5 digits that are completed with leading zeros.     
asked by 04.05.2018 / 07:55
0
answers

Error inserting duplicate key, JPA Hibernate

I have a problem with a project of java spring boot JPA hibernate, it turns out that everything works well when registering an X model, but when I pre load data directly to the base Postgres 9.6 at the time of registering I get error by the key...
asked by 16.04.2018 / 22:40
0
answers

Whitelabel Error Page

I have a Whitelabel Error Page I only run the first @RequestMaping (value="/ get", ...) the truth I do not understand the problem when consuming the service of the backend, only the first method works, the others give me back "Whitelabel Error P...
asked by 10.04.2018 / 02:58
0
answers

I can not access a resource from JDBC Resources in the Glassfish

about my problem, I have seen other questions but none has been able to solve my problem. Before going on I want to clarify that I am new to the subject and I am watching a tutorial on JAVA EE. The technologies I use are: - JPA - JTA - Mys...
asked by 12.04.2018 / 05:54