Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A530DC7B for ; Wed, 12 Dec 2012 23:45:01 +0000 (UTC) Received: (qmail 65978 invoked by uid 500); 12 Dec 2012 23:45:01 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 65922 invoked by uid 500); 12 Dec 2012 23:45:01 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 65911 invoked by uid 99); 12 Dec 2012 23:45:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 23:45:00 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of weiran.xia1@gmail.com designates 209.85.219.47 as permitted sender) Received: from [209.85.219.47] (HELO mail-oa0-f47.google.com) (209.85.219.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 23:44:54 +0000 Received: by mail-oa0-f47.google.com with SMTP id h1so1425532oag.6 for ; Wed, 12 Dec 2012 15:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nvxnly4YlF3mPQ2Y3BDh6xAbIm2ZLIj+VNs8wT38Q74=; b=Est46JfITZGJaE45cXdk8owDc0ClyoZNVrPxKzpauXlZWXXSI/NrDDIDMphtr2usEX SaQglizVs6r2rIRZNX7/XSFBshldKlGaTYTlJhscFbEYAHBSl3RiRRe/ZJ2Ig0liFUrK CGmUEtQ8U/klwB4POuvE+NhYdqfGC1ekXj+fER11VzgqLxr6PrYiB0+qIo+JaLWB4uZb ve4aqiBSD9ieNeedUPxy869YbRsjivAr/6XnlpmEJp7BVCY0DfTxN5it5xSeJurpX55V 65BGitmpIbSk/cYXEuUvT7qzk5NRYpYwO6h+ez9J08g76KYkBnUqJNlb9hHVMFDg4CBp bdeA== MIME-Version: 1.0 Received: by 10.60.27.166 with SMTP id u6mr1508650oeg.80.1355355873348; Wed, 12 Dec 2012 15:44:33 -0800 (PST) Received: by 10.76.132.105 with HTTP; Wed, 12 Dec 2012 15:44:33 -0800 (PST) Received: by 10.76.132.105 with HTTP; Wed, 12 Dec 2012 15:44:33 -0800 (PST) In-Reply-To: References: Date: Thu, 13 Dec 2012 07:44:33 +0800 Message-ID: Subject: Re: [DISCUSS] Api refactoring -- validation From: Mice Xia To: cloudstack-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=e89a8fb2058e600d8904d0b0615e X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb2058e600d8904d0b0615e Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable i remember hibernate is licensed under LGPL, and we re implemented a lot of DAOs for this reason. =D4=DA 2012-12-13 =C9=CF=CE=E77:17=A3=AC"Fang Wang" = =D0=B4=B5=C0=A3=BA Hi all, In our current API refactoring work, we plan to add a validation annotation to Validate DB entity, validate some parameter range, etc. We plan to add the @validate annotation to API commands. IT is suggested we could use Hibernate Validator. Anyone with experience with Hibernate validator, how we could deploy it here? 1. is there a version we should definitely use? 2. Which option is better to integrate into our maven? Add it as dependency or as a plugin? 3. What is the latest version working with maven? Thanks for any input, -Fang --e89a8fb2058e600d8904d0b0615e--