File tree Expand file tree Collapse file tree 2 files changed +27
-51
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test Expand file tree Collapse file tree 2 files changed +27
-51
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ /*
2
+ * SPDX-License-Identifier: LGPL-2.1-or-later
3
+ * Copyright Red Hat Inc. and Hibernate Authors
4
+ */
5
+ package org .hibernate .orm .test .id .uuid ;
6
+
7
+ import org .hibernate .testing .orm .domain .gambit .EntityOfBasics ;
8
+ import org .hibernate .testing .orm .junit .DomainModel ;
9
+ import org .hibernate .testing .orm .junit .JiraKey ;
10
+ import org .hibernate .testing .orm .junit .SessionFactory ;
11
+ import org .hibernate .testing .orm .junit .SessionFactoryScope ;
12
+ import org .junit .jupiter .api .Test ;
13
+
14
+ import java .util .UUID ;
15
+
16
+ @ SuppressWarnings ("JUnitMalformedDeclaration" )
17
+ @ DomainModel (annotatedClasses = EntityOfBasics .class )
18
+ @ SessionFactory
19
+ public class UuidAggregationTest {
20
+ @ Test
21
+ @ JiraKey (value = "HHH-15495" )
22
+ public void testMaxUuid (SessionFactoryScope scope ) {
23
+ scope .inTransaction ( (session ) -> {
24
+ session .createSelectionQuery ( "select max(theUuid) from EntityOfBasics" , UUID .class ).getSingleResult ();
25
+ } );
26
+ }
27
+ }
You can’t perform that action at this time.
0 commit comments