HHH-7718 Support "import" in HBM mappings

This commit is contained in:
brmeyer 2012-10-25 15:11:47 -04:00
parent 9fbfcdcabf
commit 38b5367f54
2 changed files with 2 additions and 2 deletions

View File

@ -301,7 +301,7 @@ public class HibernateMappingProcessor {
.qualifyClassName( importValue.getClazz() );
String rename = importValue.getRename();
rename = ( rename == null ) ? StringHelper.unqualify( className ) : rename;
metadata.addImport( className, rename );
metadata.addImport( rename, className );
}
if ( root.isAutoImport() ) {
processEntityElementsImport( root.getClazz() );

View File

@ -52,7 +52,6 @@ import static org.junit.Assert.assertNotNull;
*
* @author Emmanuel Bernard
*/
@FailureExpectedWithNewMetamodel
public class StatsTest extends BaseCoreFunctionalTestCase {
@Override
public String[] getMappings() {
@ -67,6 +66,7 @@ public class StatsTest extends BaseCoreFunctionalTestCase {
@Test
@SuppressWarnings( {"UnusedAssignment"})
@FailureExpectedWithNewMetamodel
public void testCollectionFetchVsLoad() throws Exception {
Statistics stats = sessionFactory().getStatistics();
stats.clear();