Questions tagged as 'jpa-2.0'

1
answer

Error regarding the number of parameters in Query when not using Query, what is wrong?

I'm having difficulty using the Hiberante / JPA with composite keys, I believe the problem is there, although the generated exception stacktrace points to something that is not superficially related to the problem. I have already researched t...
asked by 01.09.2015 / 19:34
0
answers

JPA + OrmLIte android: not all of the entity are returned

Good evening, I have the following problem. I'm using JPA with ORMlite to do persistence on Android. I created a class Produto and a Categoria , both of which inherit from an abstract class AbstractEntity . When querying...
asked by 21.08.2015 / 02:20
0
answers

Hibernate + Maven + Glassfish

I have a Maven Project, which uses Hibernate, and has all dependencies ok. I have already created connection pool in glassfish. The problem is that even the class mapped with the hibernate annotations tip giving error talking that must...
asked by 09.03.2015 / 13:38
1
answer

Recover shopping cart after closing and opening browser

I'm building a shopping cart with JSF it's working, but not the way I think it's the right one. Example: When I enter sales sites, even though I'm not logged in, I can add items to the cart, and even closing and opening the browser will kee...
asked by 13.03.2018 / 17:56
1
answer

Correct way to update a property of an Object

I created an update method, however I'm having to create a variable to be able to update my property, which although working, I think this would not be the correct way to treat an object. I have this property in the FunctionalModel object bel...
asked by 06.04.2017 / 18:01
1
answer

object references an unsaved transient instance - save the transient instance before flushing

I'm having the following problem I have three tables one with the name User with the following properties Id, User, UserName and Password Person with the following Id, Name Employee with the following properties Id, Job, User_ID,...
asked by 17.02.2017 / 14:46
1
answer

JPA merge / persist

I have the following structure: A.class B.class C.class D.class A.class contains many B.class that contains D.class C.class contains many D.class that contains B.class Being D.class is...
asked by 11.05.2016 / 20:06
2
answers

Field validation problem

I'm having trouble validating two entity fields Order package com.algaworks.pedidovenda.model; import java.io.Serializable; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; import java...
asked by 03.06.2015 / 21:07
1
answer

How to do a random search using JPQL script in JPA2

The idea is basically to look for an X number of persisted entities in a random way, and these entities can not be repeated. The question is, can you perform this type of search by creating and executing a JPQL script ?, or is it necessary to im...
asked by 02.10.2014 / 16:23
0
answers

ERROR: missing FROM -clause entry for table "tX" when using LEFT join - Eclipselink and PostgreSQL

I'm getting ERROR: missing FROM-clause entry for table "t3" when trying to use the following JPQL: SELECT primeira FROM PrimeiraClasse primeira LEFT JOIN primeira.segunda.terceira.quarta quarta ON (quarta.quinta = primeira.quinta) ORDE...
asked by 08.10.2018 / 20:43