it works - I forgot about ' marks...
Still I'm looking for JPA 2.0 sample witha CriteriaBuilder ansd so on which will do the same thing.
and I can't find it in the implementation I downloaded (although rest of these new classes exist, i.e. CriteriaBuilder).
Ulf Dittmer wrote:Yes, that blog entry is obsolete, the API changed after it was written. Here's a good introduction: http://www.ibm.com/developerworks/java/library/j-typesafejpa/
But still there's a QueryBuilder
Paul Sturrock wrote:Given how ORMs work, your problem is probably not worth worrying about. If you need this level of optimization (i.e. the network between database and application is likely to be very poor) don't use an ORM. Have you profiled your applciation and checked this is a real problem, or are you just worrying about this as an early optimisation?
Just worrying and wondering if there's a dedicated solution to get only 1 field from database instead of a whole object
Thank you for pointing out the ORM concept Probably it's indeed not worth worrying about.