HibernateD and DDBC - ORM and DB abstraction layer for D

michaelc37 michaelc37 at msn.com
Sat Apr 13 09:23:03 PDT 2013


First off; Awesome project (just discovered this).

Is it possible set up the mapping externally in some sort of xml 
configuration file (without using attributes)right now?
If not, is it planned for future?

The reason i ask is because i started playing around with 
nhibernate recently, and really like the fact that i did not have 
to polute(for lack of a better term) the code file with 
attributes.

e.g.
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                    assembly="Something.Core"
                    namespace="Something.Core.Data.Models">

   <class name="User">
     <id name="Id">
       <generator class="native"></generator>
     </id>
     <property name="FirstName" />
     <property name="LastName" />
   </class>

</hibernate-mapping>


More information about the Digitalmars-d-announce mailing list