Questions tagged as 'jpa'

0
answers

could not execute statement

I'm using JAVAJPA, Wildfly and PrimeFaces, when I try to save in the database it gives me this error: "could not execute statement". Can someone help me? This is my MB: package br.com.sicoob.ManagedBeans ; import java.io.Serializable; impo...
asked by 16.08.2016 / 22:02
2
answers

Create bidirectional relationship without using DTO?

Hello, I'm in a project and I need to do bidirectional relationship between two entities, the relationship is @OneToMany @ManyToOne , so far so good. But I wonder if there is any way to do it without using DTO? @Entity public class An...
asked by 01.07.2016 / 16:53
0
answers

screen editing user does not load data, and delete method does not delete

Take a look at the codes: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition template="/WEB-INF/t...
asked by 12.07.2016 / 21:03
1
answer

PostgreSQL Reserved Word Problems

I'm using locally a code downloaded from GitHub for educational purposes and I'm having problems doing the deploy of war, the error has to do with a reserved word from the bank used in the roles table Caused by: org.postgresql.util.PSQLException...
asked by 27.06.2016 / 15:21
0
answers

On call to EntityIdentifierReaderImpl # resolves, EntityKey was already known; should only happen on root returns with an optional identifier specified

Using hibernate with class: Text.java package br.com.meusite.model.documento; @Entity public class Texto extends ABeanDao<Texto> { private static final long serialVersionUID = 1L; private static final int cMaxTamanhoIndic...
asked by 20.05.2016 / 20:44
1
answer

JPA Eclipselink - Trigger SQL SERVER

I'm having a problem with a trigger created in SQL SERVER. When I insert the data in the table that initiates the direct trigger in SQL SERVER the trigger works normal, however when done the insertion by JPA it presents an error and of the rollb...
asked by 18.06.2016 / 17:47
0
answers

JPA Hibernate two entities with same name, always saving in the same entity

I have jCombobox where all entidades students are loaded. It happens to have two entities with the same name (two students Rodrigo Silva for example). Both are loaded into combo . With gravar data in banco , i...
asked by 11.04.2016 / 12:27
1
answer

Doubt SQL Beginner

I need to know what the following queries accomplish, however I'm in doubt, as I'm starting to study SQL now. Can you help me? "SELECT user_id, CAST(SUM(points_per_badge) AS INT) " + "FROM (SELECT p.user_id AS user_id, (COUNT(1) * b.qu...
asked by 13.03.2016 / 00:40
0
answers

Hibernate, JPA and SQL Server ERROR

I can not upload my application. Below the stack, persistence and pom. Stack 22:25:32.131 [main] ERROR o.h.tool.hbm2ddl.SchemaExport - HHH000231: Schema export unsuccessful java.lang.UnsupportedOperationException: The application must suppl...
asked by 27.02.2016 / 02:29
0
answers

Doubt when generating procedure return REST in jersey

I have a method where the return of it is a list, based on an execution of a procedure in the bank StoredProcedureQuery spq = em.createStoredProcedureQuery("PROCEDURE"); .... The return of this query are some fields in a t...
asked by 19.02.2016 / 12:57