Remove requirement of mapping element from cfg.xml

Description

It has been requested the cfg.xml not have the mapping element be required. I'm not sold on the use case but I don't see a problem with it.

Environment

None

Attachments

1

Activity

MikeM 
May 7, 2005 at 9:08 AM

deployed with 0.8

MikeM 
May 5, 2005 at 6:16 AM

schema changed

Bill Hawes 
March 30, 2005 at 12:43 AM

This is a simple patch to nhibernate-configuration-2.0.xsd (add MinOccurs='0' to the mapping element). I have created a simple application that uses a cfg.xml file with no mappings & adds mappings programatically and this works fine.

REL 
March 3, 2005 at 11:35 AM

This feature is
in line with current hibernate cfg.xml files and with the following use case:

1) Need to use more then one database like in EI scenarios.
( so cant use app.config)
2) Want to keep connection info configurable( so: dont hardcode configuration but use cfg.xml)
3) Want to keep class-persist info either programmatically( no problem hardcoding there I think) or in its own class.hbm.xml files.

Regards,
R

MikeM 
January 26, 2005 at 3:34 PM

It will need to be done anyway when a nhibernate config section is built and replaces the current <add key="" value="" /> handling there is now.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created August 13, 2004 at 5:10 AM
Updated May 7, 2005 at 9:08 AM
Resolved May 5, 2005 at 6:16 AM
Who's Looking?