Re: [DISCUSS] Api refactoring -- validation

2012-12-13 Thread Min Chen
>> Sent: Thursday, December 13, 2012 10:12 AM >> To: cloudstack-dev@incubator.apache.org >> Subject: Re: [DISCUSS] Api refactoring -- validation >> >> One question regarding Hibernate Validator: does it support validation >>of >> existence of a DB entity

RE: [DISCUSS] Api refactoring -- validation

2012-12-13 Thread Animesh Chaturvedi
/validator/4.3/reference/en-US/html_single/ Animesh > -Original Message- > From: Min Chen [mailto:min.c...@citrix.com] > Sent: Thursday, December 13, 2012 10:12 AM > To: cloudstack-dev@incubator.apache.org > Subject: Re: [DISCUSS] Api refactoring -- validation > > O

RE: [DISCUSS] Api refactoring -- validation

2012-12-13 Thread Fang Wang
: Koushik Das [mailto:koushik@citrix.com] Sent: Wednesday, December 12, 2012 10:01 PM To: cloudstack-dev@incubator.apache.org Subject: RE: [DISCUSS] Api refactoring -- validation If API input directly maps to a column in the DB then same validation needs to be present at both layers. For e.g

Re: [DISCUSS] Api refactoring -- validation

2012-12-13 Thread Min Chen
One question regarding Hibernate Validator: does it support validation of existence of a DB entity with a given ID? The reason I am raising this question is that we have such a validation case in API refactoring. For example, deployVMCmd has an input parameter "templateId", for this parameter, we n

RE: [DISCUSS] Api refactoring -- validation

2012-12-13 Thread Fang Wang
[mailto:chip.child...@sungard.com] Sent: Wednesday, December 12, 2012 9:31 PM To: cloudstack-dev@incubator.apache.org Subject: Re: [DISCUSS] Api refactoring -- validation On Wed, Dec 12, 2012 at 6:16 PM, Fang Wang wrote: > Hi all, > > In our current API refactoring work, we plan to add a v

RE: [DISCUSS] Api refactoring -- validation

2012-12-13 Thread Fang Wang
Thanks! If Dependency works, that'll be good. -Original Message- From: Animesh Chaturvedi [mailto:animesh.chaturv...@citrix.com] Sent: Wednesday, December 12, 2012 3:51 PM To: cloudstack-dev@incubator.apache.org Subject: RE: [DISCUSS] Api refactoring -- validation Comments in

RE: [DISCUSS] Api refactoring -- validation

2012-12-12 Thread Koushik Das
...@sungard.com] Sent: Thursday, December 13, 2012 11:13 AM To: Subject: Re: [DISCUSS] Api refactoring -- validation Thanks Min! I think the comment about validating the DB entity was what confused me. Got it now. - chip Sent from my iPhone. On Dec 13, 2012, at 12:39 AM, Min Chen wrote: > I th

Re: [DISCUSS] Api refactoring -- validation

2012-12-12 Thread Chip Childers
Thanks Min! I think the comment about validating the DB entity was what confused me. Got it now. - chip Sent from my iPhone. On Dec 13, 2012, at 12:39 AM, Min Chen wrote: > I think that it is the latter case. > > -min > > Sent from my iPhone > > On Dec 12, 2012, at 9:32 PM, "Chip Childers"

Re: [DISCUSS] Api refactoring -- validation

2012-12-12 Thread Min Chen
I think that it is the latter case. -min Sent from my iPhone On Dec 12, 2012, at 9:32 PM, "Chip Childers" wrote: > On Wed, Dec 12, 2012 at 6:16 PM, Fang Wang wrote: >> Hi all, >> >> In our current API refactoring work, we plan to add a validation annotation >> to >> Validate DB entity, vali

Re: [DISCUSS] Api refactoring -- validation

2012-12-12 Thread Chip Childers
On Wed, Dec 12, 2012 at 6:16 PM, Fang Wang wrote: > 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. This might be a silly question, but

RE: [DISCUSS] Api refactoring -- validation

2012-12-12 Thread Mice Xia
> > -Original Message- > From: Mice Xia [mailto:weiran.x...@gmail.com] > Sent: Wednesday, December 12, 2012 3:45 PM > To: cloudstack-dev@incubator.apache.org > Subject: Re: [DISCUSS] Api refactoring -- validation > > i remember hibernate is licensed under LGPL, and we re impleme

RE: [DISCUSS] Api refactoring -- validation

2012-12-12 Thread Animesh Chaturvedi
Comments in-line -Original Message- From: Fang Wang [mailto:fang.w...@citrix.com] Sent: Wednesday, December 12, 2012 3:17 PM To: cloudstack-dev@incubator.apache.org Subject: [DISCUSS] Api refactoring -- validation Hi all, In our current API refactoring work, we plan to add a validation

RE: [DISCUSS] Api refactoring -- validation

2012-12-12 Thread Animesh Chaturvedi
-dev@incubator.apache.org Subject: Re: [DISCUSS] Api refactoring -- validation i remember hibernate is licensed under LGPL, and we re implemented a lot of DAOs for this reason. 在 2012-12-13 上午7:17,"Fang Wang" 写道: Hi all, In our current API refactoring work, we plan to add a validation

Re: [DISCUSS] Api refactoring -- validation

2012-12-12 Thread Mice Xia
i remember hibernate is licensed under LGPL, and we re implemented a lot of DAOs for this reason. 在 2012-12-13 上午7:17,"Fang Wang" 写道: 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

[DISCUSS] Api refactoring -- validation

2012-12-12 Thread Fang Wang
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 valida