Re: [Hibernate] New HQL features in CVS

2005-04-04 Thread Max Rydahl Andersen
This stuff is really nice and the tools will definitly benefit from it ,) but just to be a nag: since HQL<>Criteria why don't we add ResultTransformer to the Query facility ? /max map creation from specified key and value columns (either key,value or aliased) -1, I don't see this as a general ne

RE: [Hibernate] New HQL features in CVS

2005-04-04 Thread Gavin King
>> map creation from specified key and value columns (either key,value or aliased) -1, I don't see this as a general need; you can always use a criteria query with a resultTransformer (I'm currently resisting the idea of adding ResultTransformer to the HQL facility). >> plugable loaders Well, b

RE: [Hibernate] New HQL features in CVS

2005-04-04 Thread Cameron Braid
Fantastic - That is exactly what I want :) I'd also like to see this : map creation from specified key and value columns (either key,value or aliased) select new keyedmap ( order.id as key, order as value) from Order order select new keyedmap ( order.id, order ) from Order order However th

[Hibernate] New HQL features in CVS

2005-04-04 Thread Gavin King
select foo.bar as fb, foo.x as fx from Foo foo ( use together with Query.getReturnAliases() ) select new list(foo.bar, foo.x) from Foo foo select new map( foo.bar as fb, foo.x as fx) from Foo foo Enjoy! -- Gavin King +61 410 534 454 +1 404 822 8349 callto://gavinking Hibernate [EMAIL PROTECTED

Re: [Hibernate] byte[] to Blob and char[]/String to Clob

2005-04-04 Thread Henri Tremblay
Hello, Recently I had a lot of "fun" playing with Blob on Oracle. The thing you need to be aware of is that the way to work with them depends on the driver you use. So the best way to insert a blob is different if you are using an oracle 9i thin, oracle 9i oci or some more JDBC compliant drivers

[Hibernate] byte[] to Blob and char[]/String to Clob

2005-04-04 Thread Emmanuel Bernard
Hi, To support the EJB3 spec, I've implemented 5 new UserType StringClobType ChararcterArrayClobType PrimaryChararcterArrayClobType ByteArrayBlobType (will be commited tonight) PrimaryByteArrayBlobType (will be commited tonight) I'm really not confident with that since Blob/Clob seems to be a real