As Christian said, named queries are pre-compiled to SQL. With dynamic
queries, perf can be not good because for each execution, the JPQL request
is recompile to SQL, so parsing, creation of the JPQL tree then SQL
generation, and with your solution, you concatenate lot of String. It isn't
I think it would be good to introduce some partial object like
ProjectGroupWithoutProjects that we can use in JPQL request so we won't use
non detached fields and we'll know exactly what we use and where.
Emmanuel
On Jan 21, 2008 10:59 PM, Emmanuel Venisse [EMAIL PROTECTED]
wrote:
As Christian
Hi,
I'll probably create a new branch for 1.x dev and will reserve the trunk for
2.x dev. I think I'll do it this week or the next (if you're agree, of
course :) )
I'll try to send at the same time my ideas for 2.x so we'll can discuss
about them.
Emmanuel
You can still use parameterized queries dynamically, you just use
strings that contain ? and they get turned into pre-compiled queries
in the db.
However, named queries can be further optimized by Hibernate before it
even gets to the db (pre-compiling at load, etc.)
Criteria queries are
along these lines I released the 1.0 for redback this weekend (including
configuration web page!) and am setting up a similar 1.0.x branch for it so
continuum and the other projects using it can maintain fixes as needed.
sorry, so it is clear in my previous mail...I second the nomination of
evenisse _and_ decline the nomination myself. If he doesn't want it then
I'll think about it, but in my mind there is no one more worthy of that
role.
cheers!
jesse
On Jan 9, 2008 6:50 PM, Brett Porter [EMAIL PROTECTED]
(Sorry if this is a duplicate post; for some reason this didn't make it
to the list earlier)
A Query object that wraps up criteria and is built programmatically
affords us the ability to keep Store APIs lean and stable. That is the
motivation behind building up queries programatically. IMHO,
Emmanuel Venisse wrote:
Hi,
I'll probably create a new branch for 1.x dev and will reserve the trunk for
2.x dev. I think I'll do it this week or the next (if you're agree, of
course :) )
+1
I'll try to send at the same time my ideas for 2.x so we'll can discuss
about them.
+1. I