Skip to content

Commit 38b5367

Browse files
committed
HHH-7718 Support "import" in HBM mappings
1 parent 9fbfcdc commit 38b5367

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/hbm/HibernateMappingProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private void processImports() {
301301
.qualifyClassName( importValue.getClazz() );
302302
String rename = importValue.getRename();
303303
rename = ( rename == null ) ? StringHelper.unqualify( className ) : rename;
304-
metadata.addImport( className, rename );
304+
metadata.addImport( rename, className );
305305
}
306306
if ( root.isAutoImport() ) {
307307
processEntityElementsImport( root.getClazz() );

hibernate-core/src/test/java/org/hibernate/test/stats/StatsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
*
5353
* @author Emmanuel Bernard
5454
*/
55-
@FailureExpectedWithNewMetamodel
5655
public class StatsTest extends BaseCoreFunctionalTestCase {
5756
@Override
5857
public String[] getMappings() {
@@ -67,6 +66,7 @@ public void configure(Configuration cfg) {
6766

6867
@Test
6968
@SuppressWarnings( {"UnusedAssignment"})
69+
@FailureExpectedWithNewMetamodel
7070
public void testCollectionFetchVsLoad() throws Exception {
7171
Statistics stats = sessionFactory().getStatistics();
7272
stats.clear();

0 commit comments

Comments
 (0)