Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 62687 invoked from network); 21 Aug 2010 16:56:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Aug 2010 16:56:49 -0000 Received: (qmail 22056 invoked by uid 500); 21 Aug 2010 16:56:49 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 21937 invoked by uid 500); 21 Aug 2010 16:56:48 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Delivered-To: moderator for users@openjpa.apache.org Received: (qmail 85854 invoked by uid 99); 21 Aug 2010 15:45:47 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.158 is neither permitted nor denied by domain of elkhawaja@gmail.com) Date: Sat, 21 Aug 2010 08:45:22 -0700 (PDT) From: elkhawajah To: users@openjpa.apache.org Message-ID: <1282405522365-5447804.post@n2.nabble.com> In-Reply-To: <1282404295320-5447762.post@n2.nabble.com> References: <1282404295320-5447762.post@n2.nabble.com> Subject: Re: entityManager.merge MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 3) I don't know why I am not getting the exception as documented in http://download.oracle.com/javaee/5/api/javax/persistence/EntityManager.html#merge(T). Does OpenJPA override these excpetions? as I recall in Hibernate, that if I passed non-existing component to merge method, I will get IllegalArgumentException, but heere I am getting InvalidStateException when calling flush. Also, unfortunatelly, I am not able to find a comprehensive documentation about the thrown exception from EntityManagerImpl of OpenJPA. -- View this message in context: http://openjpa.208410.n2.nabble.com/entityManager-merge-tp5447762p5447804.html Sent from the OpenJPA Users mailing list archive at Nabble.com.