>> 2) Criteria vs Named Queries: I am not convinced (yet) that Named
>> queries are the way to go. I did some digging around, they are indeed
>> best practices for JPA but I think the decision merits other
>> consideration(s). I still believe the Criteria Queries will help us
>> define a cleaner Store interface.
>>
>
>
> I'm always in favor of named queries.
> An other point about them that I haven't explain in previous threads (I
> think) is that with named queries, it is possible to modify queries
> externally with xml files so if with a DB we have some performance issues,
> it will be possible to override queries by a modified JPQL query or a native
> query.
>
How do you see the refactored ContinuumStore interface using Named
Queries? I suspect it will be just as verbose again.
Sorry, still not convinced ;-)
Rahul
|