Questions tagged as 'jpa'

1
answer

How to create a personalized query using JPA?

I am migrating a Java Swing application to JavaFX and please if someone could help me to the following: Use PostgreSQL database. In native SQL I have this query that works perfect: SELECT count(t.idremision) as entregados, COUNT(*)-cou...
asked by 10.12.2018 / 13:00
0
answers

java rmi UnmarshalException - Driver

I am trying to insert a consumer in a consumer table from my CreateUserController. From that CreateUserController class I get the attributes to save my consumer in the database. This is my CreateUserControler class import javafx.event.Actio...
asked by 21.10.2018 / 17:55
1
answer

Problem with OneToOne relationships in Hibernate

I'm learning how to use the Hibernate framework, I'm in OneToOne relationships, the problem I have is that when doing the bidirectional relationship, I miss a NullPointerException and I do not know what the failure might be. Employee: packa...
asked by 05.09.2018 / 16:36
1
answer

API REST WITH Spring Boot JPA AND HIBERNATE

I have a project where we are doing a restfull service with: Spring boot JPA JDBC WEB SPRING (MVC) Hibernate Well currently I do not have much experience with hibernate in the onetomany relationship. The detail is that for exam...
asked by 01.06.2018 / 08:20
0
answers

TypedQuery in JPA very slow

I am starting to create a project with JSF and JPA, for the moment I have made a simple login (with pending improvements) but I have found that the query it takes takes about 3 seconds, something quite high considering that the base of data for...
asked by 02.03.2018 / 23:49
1
answer

How to save entities dependent on others with JPA (Java Persistence API)?

I am currently developing an api-rest with spring-boot, whose services will be called from an application in angular, the SQL server is being used as database manager. I have the following tables: I am capturing the data of an insured,...
asked by 31.01.2018 / 21:46
1
answer

@OneToOne Spring Boot Jpa

I have the following class: @Entity() @Table(name = "user") public class UserBean extends BaseEntity implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column priva...
asked by 06.06.2018 / 11:02
1
answer

EJB - RIGHT_JOIN_NOT_SUPPORTED

I am new to the use of criteria and jpa. I have two tables related by a field. I need to make a join that shows me all the related data as well as those not related by that field even if some of the fields in the main table are empty (This is...
asked by 28.11.2017 / 16:45
1
answer

How do I create a java method to load a jcomboBox with JPA?

I am trying to make a method to load a bombobox in an application of > mysql using jpa . I use: NETBEANS 8.2 JAVA version "1.8.0_131" EclipseLink (JPA 2.1) JDBC Library Form code public jfrm_Administrador() { initComponents(...
asked by 28.07.2017 / 19:56
1
answer

Return Boolean in SELECT

I have an entity called "Period" with a boolean attribute called "processing". I want to make a function for a repository that returns "true" if there is at least one record in the DB with the attribute "processing in true", however I'm not sure...
asked by 12.06.2017 / 18:40