Hello,
I would like to use a sql query to load an entity. I work with nhibernate 2.1.0 and a MySQL database.
I followed the instructions in the documentation (
http://nhforge.org/doc/nh/en/index.html#querysql-load)
But I get this error:
Table 'magento131.Shipping' doesn't exist
Here is my mapping file:
<class name="Shipping" lazy="false">
<id name="Id">
<generator class="assigned" />
</id>
<property name="Label" update="false" />
<loader query-ref="shipping"/>
</class>
<sql-query name="shipping">
<return alias="ship" class="Shipping" />
select distinct shipping_method as {ship.Id}, REPLACE
(shipping_method , '_', ' ') as {ship.Label}
from delivery_days
</sql-query>
What am I doing wrong?
Thank you in advance for your help.
mathmax