[hibernate-dev] Hibernate Statistics

2007-12-19 Thread Michael Plöd
Hi, I realized that the Hibernate Statistics lack a few things in my opinion. There are for example: a) There is a bug in QueryStatisticsImpl that prevents the minTime from being computed properly (HHH-2948) b) Critera Queries are not part of the Query Statistics. This gives an incomplete "pictur

Re: [hibernate-dev] Using hibernate with UDFs

2007-12-19 Thread Chris Bredesen
Could you set the parameters as connection/session level variables using T-SQL, eliminating the function params entirely? If so, you could implement a ConnectionProvider which did this on getConnection() and undid it on closeConnection() (the latter is very important). You'd then only need so

Re: [hibernate-dev] Using hibernate with UDFs

2007-12-19 Thread Max Rydahl Andersen
> [EMAIL PROTECTED] wrote: >> Most modern databases support user defined functions that return tables. We >> use them with both MS-SQL Server and Postgres to implement a rather >> complex/convoluted security scheme in the database. Thus instead of doing >> this: >> >> SELECT * FROM clients >>

Re: [hibernate-dev] Hibernate Statistics

2007-12-19 Thread Max Rydahl Andersen
Feel free michael, jira is very open for patches ;) /max > Hi, > I realized that the Hibernate Statistics lack a few things in my opinion. > > There are for example: > a) There is a bug in QueryStatisticsImpl that prevents the minTime from > being computed properly (HHH-2948) > > b) Critera Queri