I have a problem concerning a model import. The following hbm file does not import correctly :
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<hibernate-mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" namespace="Entity.Buisness" assembly="Entity, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" xmlns="urn:nhibernate-mapping-2.2">
<class name="CommandeClient" table="COMMANDE_CLIENT">
<cache usage="nonstrict-read-write" region="buisness" />
<id name="Id" column="ID" type="Guid">
<generator class="guid" />
</id>
<property name="NoCommande" type="AnsiString" column="NO_COMMANDE" length="10" />
<bag name="LignesCommandeClient" inverse="true" cascade="all" batch-size="100">
<key column="COMMANDE_CLIENT_ID" on-delete="cascade" />
<one-to-many class="LigneCommandeClient" />
</bag>
<map name="Proprietes" table="COMMANDE_CLIENT_PROP" lazy="false" batch-size="100" fetch="join">
<cache usage="nonstrict-read-write" region="buisness" />
<key column="COMMANDE_CLIENT_ID" foreign-key="CMDE_CLI_PROP_CMDE_CLI_FK" />
<map-key column="CLE" type="AnsiString" length="100" />
<element column="VALEUR" type="AnsiString" length="4000" />
</map>
</class>
</hibernate-mapping>
The goal is to map a normalized table with Key/Value properties mapped as dictionaries <string,string>.
Is this functionality will be implemented in the future ?
Thank you
Nicolas