Re: [hibernate-dev] Hibernate Search: configure the LockingFactory

2009-02-17 Thread Hardy Ferentschik
On Mon, 16 Feb 2009 15:06:27 +0100, Sanne Grinovero wrote: 1) property name: I'm naming the property key "locking_strategy", scoped for each DirectoryProvider. Is it really useful to be able to configure it per DirectoryProvider? How useful is it to mix the locking strategies between pro

Re: [hibernate-dev] Hibernate Search: configure the LockingFactory

2009-02-17 Thread Sanne Grinovero
2009/2/17 Hardy Ferentschik : > On Mon, 16 Feb 2009 15:06:27 +0100, Sanne Grinovero > wrote: > >> 1) property name: >> I'm naming the property key "locking_strategy", scoped for each >> DirectoryProvider. > > Is it really useful to be able to configure it per DirectoryProvider? How > useful is it

Re: [hibernate-dev] Hibernate Search: configure the LockingFactory

2009-02-17 Thread Hardy Ferentschik
On Tue, 17 Feb 2009 10:23:28 +0100, Sanne Grinovero wrote: I'm not really worried about "stupid" combinations as different DPs are indipendent; somebody could use a RAM-DP for something and a FS-DP for something else, and maybe have one favourite on a NFS share.. for each one there are more s

[hibernate-dev] [Bean Validation] @Pattern

2009-02-17 Thread Emmanuel Bernard
I had a lot of demands for regexp support and since there is a need for string matching in the built-in constraints... http://opensource.atlassian.com/projects/hibernate/browse/HV-121 I replaced the bitwise guru flags approach with an enum @Pattern( regexp = ".*", flags = { Pattern.Flag.CANON_

Re: [hibernate-dev] SessionImpl.list(CriteriaImpl criteria) returns an empty list when no implementors exist

2009-02-17 Thread Steve Ebersole
We could perhaps log.warn like we do for HQL, but throwing an exception is not a good idea imo. - Steve Ebersole Project Lead http://hibernate.org st...@hibernate.org Principal Software Engineer JBoss, a division of Red Hat http://jboss.com http://redhat.com steve.ebers...@jboss.com steve.ebers

Re: [hibernate-dev] SessionImpl.list(CriteriaImpl criteria) returns an empty list when no implementors exist

2009-02-17 Thread Kevin Wong
Hi Steve, thanks for the idea. Thoughts on returning null instead of an empty list to differentiate an unsuccessful query versus a successful query that returns no items. Kevin - Original Message - From: "Steve Ebersole" To: "Kevin Wong" Cc: hibernate-dev@lists.jboss.org Sent: Monday

Re: [hibernate-dev] SessionImpl.list(CriteriaImpl criteria) returns an empty list when no implementors exist

2009-02-17 Thread Steve Ebersole
first, I want you to understand that hql and criteria both support polymorphic querying. In other words the thing from which you query does not have to be mapped, and we will instead query from all entity class which implement the named interface or extend from the named class ('from java.lang.Obj

[hibernate-dev] hibernate-tools JUnit template

2009-02-17 Thread Ing. Arturo Frappé Muñoz
Good evening Lords & Ladies: This is a simple .ftl template to generate a trivial JUnit test code. Any ideas & improvements are welcome ;) junit-tool.ftl Description: Binary data ___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://l