Bug 249218 - Criteria API
This update consists of a Specification API update and initial prototype implementation of parts of the API
Query execution support.
diff --git a/src/javax/persistence/Tuple.java b/src/javax/persistence/Tuple.java
index b3391ae..ff1ba29 100644
--- a/src/javax/persistence/Tuple.java
+++ b/src/javax/persistence/Tuple.java
@@ -62,7 +62,7 @@
      *         does not correspond to an element in the
      *         query result tuple
      */
-    <X> X get(String alias); 
+    Object get(String alias); 
 
     /**
      * Get the value of the element at the specified
diff --git a/src/javax/persistence/criteria/CriteriaQuery.java b/src/javax/persistence/criteria/CriteriaQuery.java
index 058e6f2..3be5a2b 100644
--- a/src/javax/persistence/criteria/CriteriaQuery.java
+++ b/src/javax/persistence/criteria/CriteriaQuery.java
@@ -148,7 +148,13 @@
     CriteriaQuery<T> distinct(boolean distinct);

  

     /**

-     * Return the selection items of the query as a list

+     * Return the selection item of the query.  This will correspond to the query type.

+     * @return the selection item of the query

+     */

+    Selection<T> getSelection();

+

+    /**

+     * Return the multiselection items of the query as a list

      * @return the selection items of the query as a list

      */

     List<Selection<?>> getSelectionList();