Date: Thu, 08 Sep 2011 16:53:45 +0200 From: Lele User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.java.help Subject: Re: CriteriaQuery and JPA References: <4e676e7b$1@news.x-privat.org> <4e68bd21$2@news.x-privat.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: $$afwhll$slnyo.news.x-privat.org Message-ID: <4e68d6f9$2@news.x-privat.org> Organization: X-Privat.Org NNTP Server - http://www.x-privat.org Lines: 15 X-Authenticated-User: $$p9zou1n1$ng5dhdq$s2 X-Complaints-To: abuse@x-privat.org Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.x-privat.org!x-privat.org!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:1026 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 ;)