Questions tagged as 'hibernate'

0
answers

Hibernate does not consider field to insert

I have a class Cliente that has composite key: @Entity @Table(name = "Clientes") @IdClass(ClientePK.class) public class Cliente implements Serializable { //@EmbeddedId //private ClientePK clientePK; @Id @Column(name = "...
asked by 24.10.2018 / 16:32
1
answer

Jpa with hibernate implementation does not generate tables in postgresql

Good night to all I'm using Jpa with hibernate implementation for among other features generate tables, the problem is that from one time to another the tables stopped being generated, someone else has gone through this Follow my persistence....
asked by 15.07.2014 / 02:08
2
answers

deleting an object from the database with jpa 2 and jsf 2

Well I'm trying to make an exclusion using jpa with jsf but I'm not having success. I have my table. <p:dataTable value="#{mbProduto.produtos}" var="produtos" paginator="true" rows="10" pagina...
asked by 17.07.2014 / 03:22
1
answer

Map objects by Hibernate with "decentralized" data

I do not know if the decentralized title term is correct, if it is not someone feel free to change. But let's get down to business. I have a scenario where I am developing a program that manages monitoring of an institution, in the classes of...
asked by 14.12.2014 / 03:39
0
answers

Difficulty with JPA annotations for entity relationships

I have the following relationships: CategoriaPeca , SubcategoriaPeca and Peca . A CategoryPart can have several SubcategoryPart , and a SubcategoryPart can have several CategoryPart , a part can only be in one SubcategoryPeca and onl...
asked by 06.09.2018 / 14:37
0
answers

Dynamically connect to an Oracle database for each JAX-RS request

I am developing a project in JBoss Seam to provide some services via JAX-RS in Wildfly 9. The DBMS used is Oracle 10g, and the services that will be available are form features that the company develops in Oracle Forms. The procedures, fun...
asked by 23.07.2018 / 14:15
0
answers

Spring JPA - Procedure call with sqlserver dialect

Hello, I have the following configuration in my application.properties file: spring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver spring.jpa.hibernate.dialect= org.hibernate.dialect.SQLServer2012Dialect However...
asked by 09.08.2018 / 21:46
0
answers

One of the tables is not being created - JPA / Hibernate with MySQL

I have a problem running my test class: import javax.persistence.EntityManager; import br.com.teste.jpa.c_mapeamento.model.Conta; public class PopulaConta { public static void main(String[] args) { EntityManager manager = JPAUt...
asked by 30.08.2018 / 22:50
1
answer

Lazy loading in PrimeFaces DataTable does not bring log data

I have a lazy load on DataTable of PrimeFaces, and on this table I upload I want to edit a record. Clicking the line will open a dialog with a form to edit that record. However, when you click the line, it opens...
asked by 19.08.2018 / 21:11
0
answers

Could not read entity state from ResultSet EntityKey OneToMany composite keys

I'm having problems in the oneToMany relationship of two entities using Jpa Hibernate. I have two tables, one cancellation and another that has the orders that are part of the cancellation. The cancellation table has a simple primary key (idc...
asked by 02.02.2018 / 17:56