Re: [hibernate-dev] Do you know of any ASL 2 implementation of...

2009-02-02 Thread Mark Hobson
Okay, I've created the project here: http://code.google.com/p/jtype/ The method you're after is TypeUtils.isAssignable. I'm interested in fleshing out this library in future, keeping the focus on pure type operations. I'd like to implement full type inference and type capturing in line with the

Re: [hibernate-dev] [BVAL-RI] Regarding BVAL-90

2009-02-02 Thread Hardy Ferentschik
Great. Just to make sure that we don't work on the same things - could you contact the asignee in case you want to work on on an already assigned task? In many cases the person is more than happy to drop a task, but just has to know ;-) In case you start working on an unassinged task make sure

[hibernate-dev] [BVAL-RI] Renamed several constraints

2009-02-02 Thread Alaa Mohsen
Hi all, To follow the naming convention, I renamed the constraint validators for Past, Null and NotNull. I created a JIRA issue for that BVAL-105, and attached the patches ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jbos

Re: [hibernate-dev] [BVAL-RI] Regarding BVAL-90

2009-02-02 Thread Alaa Mohsen
OK. So no need for me to implement it then. Got a couple of meetings, then I'll look at what I can do in the RI Regards, Alaa Nassef On Mon, Feb 2, 2009 at 3:50 PM, Hardy Ferentschik wrote: > Hi, > > I am actually implementing this as we speak. I need it in order to > implement > BVAL-99. And ye

Re: [hibernate-dev] [BVAL-RI] Regarding BVAL-90

2009-02-02 Thread Hardy Ferentschik
Hi, I am actually implementing this as we speak. I need it in order to implement BVAL-99. And yes, it ends up to be a static map. --Hardy What's the status of BVAL-90 (Stop using a properties file for built-in constraints and move to a list in Java)? I'm thinking of implementing it u

Re: [hibernate-dev] [BVAL-RI] Implementing built in constraint validators

2009-02-02 Thread Hardy Ferentschik
Hi, no worries. I applied your patch and also fixed the big. Thanks for the patch. --Hardy On Mon, 02 Feb 2009 12:09:30 +0100, Alaa Mohsen wrote: Hello Guys, I implemented most constraint validators yesterday and added a patch on JIRA. There was a small bug in the AssertFalse v

Re: [hibernate-dev] [BVAL-RI] Regarding BVAL-90

2009-02-02 Thread Alaa Mohsen
I have a question. When you said to add the map at the ValidatorFactory level, did you mean to add it to ValidatorFactoryImpl? As I can see, getting the validators of built in constraints happens in ConstraintDescriptorImpl, which is used only by the BeanMetaDataImpl. Do I put the map in Constraint

Re: [hibernate-dev] [BVAL-RI] Regarding BVAL-90

2009-02-02 Thread Alaa Mohsen
OK On Mon, Feb 2, 2009 at 1:31 PM, Emmanuel Bernard wrote: > Actually I am sure now, you have to store the list in a Map at the > ValidatorFactory level because the list of validators can be overridden in > XML. > > > On Feb 2, 2009, at 12:28, Emmanuel Bernard wrote: > > I don't see the need fo

Re: [hibernate-dev] [BVAL-RI] Regarding BVAL-90

2009-02-02 Thread Emmanuel Bernard
Actually I am sure now, you have to store the list in a Map at the ValidatorFactory level because the list of validators can be overridden in XML. On Feb 2, 2009, at 12:28, Emmanuel Bernard wrote: I don't see the need for reflection. Just add them to the map, period. You might want to sto

Re: [hibernate-dev] [BVAL-RI] Regarding BVAL-90

2009-02-02 Thread Emmanuel Bernard
I don't see the need for reflection. Just add them to the map, period. You might want to store the map in the ValidatorFactory instead of a static, not sure. On Feb 2, 2009, at 12:22, Alaa Mohsen wrote: Hello All, What's the status of BVAL-90 (Stop using a properties file for built-

[hibernate-dev] [BVAL-RI] Regarding BVAL-90

2009-02-02 Thread Alaa Mohsen
Hello All, What's the status of BVAL-90 (Stop using a properties file for built-in constraints and move to a list in Java)? I'm thinking of implementing it using a static map that's get filled on class loading. I wanted to have a clean implementation using reflection, but can't find a clean so

[hibernate-dev] [BVAL-RI] Implementing built in constraint validators

2009-02-02 Thread Alaa Mohsen
Hello Guys, I implemented most constraint validators yesterday and added a patch on JIRA. There was a small bug in the AssertFalse validator, and I fixed it, and added another patch to be used in place of the one attached yesterday. Wasn't able to delete the old attachemnt, since I don't have