Posts

Showing posts from March, 2017

JPA JPQL advantages and disadvantage

Image
wrong side with this JPQL query content belongs to ibm developer site highly thanks to them for basic and detailed explanation- https://www.ibm.com/developerworks/library/j-typesafejpa/ The Java developer community has welcomed JPA since its introduction in 2006. The next major update of the specification — version 2.0 (JSR 317) — will be finalized later in 2009 (see  Resources ). One of the key features introduced in JPA 2.0 is the Criteria API, which brings a unique capability to the Java language: a way to develop queries that a Java compiler can verify for correctness at compile time. The Criteria API also includes mechanisms for building queries dynamically at run time. This article introduces the Criteria API and the closely associated  metamodel  concept. You will learn how to use the Criteria API to develop queries that a Java compiler can check for correctness to reduce run-time errors, in contrast to string-based Java Persistence Query Language (JPQ...