Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #1026

Re: CriteriaQuery and JPA

Date 2011-09-08 16:53 +0200
From Lele <lelel@lele.com>
Newsgroups comp.lang.java.help
Subject Re: CriteriaQuery and JPA
References <4e676e7b$1@news.x-privat.org> <fcd93a94-1fe2-42ee-aa7d-545df845d5c1@glegroupsg2000goo.googlegroups.com> <4e68bd21$2@news.x-privat.org> <j4agjp$lj7$1@dont-email.me>
Message-ID <4e68d6f9$2@news.x-privat.org> (permalink)
Organization X-Privat.Org NNTP Server - http://www.x-privat.org

Show all headers | View raw


Il 08/09/2011 15:39, markspace ha scritto:
> On 9/8/2011 6:03 AM, Lele wrote:
>
>> What's the problem?? Can you help me??
>
> Can you post complete code? These snippets aren't helping. A short
> complete example would show us what is going on.

Solved.
I missed to persist the object:

entityManager.persist(mc);
entityManager.flush();

Thanks ;)

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

CriteriaQuery and JPA Lele <lamia@mail.lcom> - 2011-09-07 15:15 +0200
  Re: CriteriaQuery and JPA Lew <lewbloch@gmail.com> - 2011-09-07 11:02 -0700
    Re: CriteriaQuery and JPA Lele <lele@lele.com> - 2011-09-08 09:48 +0200
    Re: CriteriaQuery and JPA Lele <lelel@lele.com> - 2011-09-08 15:03 +0200
      Re: CriteriaQuery and JPA markspace <-@.> - 2011-09-08 06:39 -0700
        Re: CriteriaQuery and JPA Lele <lelel@lele.com> - 2011-09-08 16:53 +0200
          Re: CriteriaQuery and JPA Lew <lewbloch@gmail.com> - 2011-09-08 09:05 -0700

csiph-web