Skip to content

Commit 28560aa

Browse files
committed
Various code cleanup
1 parent dc82b81 commit 28560aa

File tree

2 files changed

+27
-51
lines changed

2 files changed

+27
-51
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/aggregation/UuidAggregationTest.java

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}

0 commit comments

Comments
 (0)