Re: [hibernate-dev] [BV] Though about PatternValidator

2009-06-24 Thread Emmanuel Bernard
I'd rather see frameworks understand that "" is not equivalent to null :) I know Oracle DB does not think that way but any decent human being does. On Jun 24, 2009, at 13:25, Alaa Mohsen wrote: It was just a thought so that the developer doesn't have to handle such cases himself. regar

Re: [hibernate-dev] [BV] Though about PatternValidator

2009-06-24 Thread Alaa Mohsen
It was just a thought so that the developer doesn't have to handle such cases himself. regards Alaa Nassef On Wed, Jun 24, 2009 at 11:19 AM, Hardy Ferentschik < hibern...@ferentschik.de> wrote: > If you want to allow the empty string you can start your regular expression > with the 'empty' or ope

Re: [hibernate-dev] [BV] Though about PatternValidator

2009-06-24 Thread Hardy Ferentschik
If you want to allow the empty string you can start your regular expression with the 'empty' or operator '|', eg "|^.*foo.*$". Now the string can be empty or anything with foo in it. --Hardy On Wed, 24 Jun 2009 09:47:56 +0200, Alaa Mohsen wrote: Hello All, I just realized that PatternVal