Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 156E6C0D7 for ; Wed, 16 May 2012 22:47:18 +0000 (UTC) Received: (qmail 98473 invoked by uid 500); 16 May 2012 22:47:17 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 98414 invoked by uid 500); 16 May 2012 22:47:17 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 98405 invoked by uid 99); 16 May 2012 22:47:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 22:47:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of darpan27484@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2012 22:47:12 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SUmzb-0005rS-NR for users@camel.apache.org; Wed, 16 May 2012 15:46:51 -0700 Date: Wed, 16 May 2012 15:46:51 -0700 (PDT) From: dmhatre To: users@camel.apache.org Message-ID: <1337208411720-5711171.post@n5.nabble.com> In-Reply-To: <1337183076871-5710962.post@n5.nabble.com> References: <1337124663328-5710457.post@n5.nabble.com> <4FB307BD.2090707@gmail.com> <1337183076871-5710962.post@n5.nabble.com> Subject: Re: Help with bulk insert using Spring+JPA+hibernate MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Folks, I figured out some workaround for this problem. I dont know whether this is the proper way to do it or is it something that can be enhanced in camel. I went throught the JpaProducer and found out that the expression.evaluate looks for some kind of convertor else picks default convertor and exactly where my code was failing since it was trying to match arraylist to the entity. Below is the workaround that I implemented and was able to successfully do the batch insert. Look forward to hear some more inputs if possible on this issue. Thank You! -- View this message in context: http://camel.465427.n5.nabble.com/Help-with-bulk-insert-using-Spring-JPA-hibernate-tp5710457p5711171.html Sent from the Camel - Users mailing list archive at Nabble.com.