NHibernate – CreateCriteria vs CreateAlias

given these requirements there would be no difference, the generated SQL is the same: for mappings: <?xml version=”1.0″ encoding=”utf-8″ ?> <hibernate-mapping xmlns=”urn:nhibernate-mapping-2.2″> <class name=”Project” table=”Project”> <id name=”Id” type=”Int32″ unsaved-value=”0″> <column name=”Id” sql-type=”int” not-null=”true” unique=”true”/> <generator class=”native” /> </id> <many-to-one name=”Job” column=”FK_JobId” cascade=”save-update” not-null=”true” /> </class> </hibernate-mapping> <?xml version=”1.0″ encoding=”utf-8″ ?> <hibernate-mapping xmlns=”urn:nhibernate-mapping-2.2″> <class name=”Job” table=”Job”> … Read more