HHH-7718 Support "import" in HBM mappings
This commit is contained in:
parent
9fbfcdcabf
commit
38b5367f54
|
@ -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() );
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue