You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Razumovsky Andrey <hm...@hotmail.ru> on 2008/02/27 18:27:51 UTC

Re[3]: ROP: validation and callbacks

I've found the answer: it turns out that client 'ObjAttribute' descendant, 'ClientObjAttribute' needed validation information. I think it is a good idea to make those 'isMandatory' and 'getMaxLength' methods members of 'ObjAttribute' so that the same validation code would work on client and server (server's objattrs will reference to DbAttribute). How do you think?)

Re: Re[3]: ROP: validation and callbacks

Posted by Andrus Adamchik <an...@objectstyle.org>.
Agreed, totally makes sense. Could you please open a feature request  
in Jira:

http://issues.apache.org/cayenne/

Thanks,
Andrus

On Feb 27, 2008, at 7:27 PM, Razumovsky Andrey wrote:

> I've found the answer: it turns out that client 'ObjAttribute'  
> descendant, 'ClientObjAttribute' needed validation information. I  
> think it is a good idea to make those 'isMandatory' and  
> 'getMaxLength' methods members of 'ObjAttribute' so that the same  
> validation code would work on client and server (server's objattrs  
> will reference to DbAttribute). How do you think?)
>