Add default Namespace & Assembly to hibernate-mapping

Description

It would be nice if the hibernate-mapping element had an assembly and namespace attribute that could be the default value for the classes in the hbm.

If the mapping looked something like
<hibernate-mapping
namespace="NS.NS1"
assembly="ASMBLY"
>
<class name="sometype">
....
</hibernate-mapping>

Then the Binder would be smart enough to make the class name actually be "NS.NS1.sometype, ASMBLY" during the configuration process. If the attribute name="NS.NS1.NS2.thetype" it would be smart enough to make the name "NS.NS1.NS2.thetype, ASMBLY". Of course, if there was an assembly specified in the name="" then it would not use the default namespace, assembly.

Environment

None

Activity

PaulP 
March 21, 2005 at 3:26 AM

Done, schema has been updated as well

Bill Hawes 
March 17, 2005 at 6:52 AM

I'll have a look at implementing this.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created January 5, 2005 at 5:50 PM
Updated March 21, 2005 at 3:26 AM
Resolved March 21, 2005 at 3:26 AM
Who's Looking?