Questions tagged as 'jpa'

1
answer

How to resolve this error: Unknown entity when saving in hibernate?

The following is the code: ItemsSaleDAY: package com.livro.capitulo3.crudannotations; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import org.hibernate.*; import com.livro.capitulo...
asked by 30.06.2018 / 01:06
0
answers

Error when saving to JSF + JPA & Hibernate database

Good afternoon I'm registering with JSF, and when I try to save the user to the database, this error happens, but I've added all the jars in the lib tomcat folder, and it's been verified that there is no jar of the same or different version for...
asked by 05.06.2018 / 18:55
0
answers

Hibernate JPA - delete children within list

public class A implements Serializable { @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY) @JoinColumn(name = "A_ID") private List<B> bList; } public class B implements Serializable { @JoinCo...
asked by 29.05.2018 / 15:43
0
answers

Many To Many JSF and JPA

Dear friends, I ask you to help me solve the following question: I have two entities in a many-to-many relationship @Entity public class Livro implements Serializable { private static final long serialVersionUID = 1L; @Id @Genera...
asked by 01.06.2018 / 11:11
0
answers

Error persisting byte array in postgresql

Gentlemen, I receive an exception ERROR SqlExceptionHelper:131 - ERRO: coluna "ds_inddir" é do tipo bytea mas expressão é do tipo bigint the mapping of the table this way @Lob @Basic(fetch= FetchType.EAGER) @Column(name = "ds_poldir") pri...
asked by 25.05.2018 / 01:59
1
answer

EntityManagerFactory closed session

About this topic: Change in database and update of entity Resolved, but now gives another EntityManagerFactory is closed error. I created this class: package br.com.netsoft.dao; import javax.persistence.EntityManager; import javax.pe...
asked by 17.05.2018 / 05:15
1
answer

JPA + HIBERNATE error

Gentlemen. I have a class called User. @Entity @Table(name = "tb_usuario") public class Usuario { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @Column(name = "email", nullable = false, unique = true) private String...
asked by 06.05.2018 / 17:19
1
answer

Error 500 in java webservices when testing on postman

I've been trying to solve this problem for a long time, I set up my environment about 3 times, but at the time of testing, postman always gives 500, I think my problem is not in the entity or in DAO, since I tested in eclipse via desktop, howeve...
asked by 25.04.2018 / 19:43
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
0
answers

Play Framework 1.2.7 JPAQuerry

Hello, I'm a beginner in java, and I'm having a very difficult problem to solve, I'm trying to get the parameter usrName and write to my bank with the following querry, but the account value always gets NULL, could someone help me by kindness Fol...
asked by 17.04.2018 / 22:15