NHibernate version:1.2.1
Mapping documents: <class name="wh_yel.Entity.BarCodePattern,wh_yel" table="bar_code_pattern" lazy="true"> <id name="Key" column="bar_code_id" type="Guid"> <generator class="assigned" /> </id> [b] <many-to-one name="BarCodePattern" column="parent_id" cascade="none" not-null="true" /> //parent_id contains the bar_code_id
I just receive the excpetion of can't complie this mapping doc
if use sql to express
i want this:
select *
from bar_code_pattern a, bar_code_pattern b
where
a.bar_code_id = b.parent_id
|