--- a/Allura/allura/model/__init__.py
+++ b/Allura/allura/model/__init__.py
@@ -22,5 +22,5 @@
 from .session import project_doc_session, project_orm_session
 from .session import artifact_orm_session, repository_orm_session
 
-from ming.orm import MappedClass
-MappedClass.compile_all()
+from ming.orm import Mapper
+Mapper.compile_all()