Left Join in NHibernate HQL -


Is it possible to connect the left between two tables, which is a parent or many relationships? All the samples I have just shown to those scenarios

I have the following tables,

sync -> ID (string) -> EntityId (string) -> other information

P> Customer -> ID -> Other Information

Project -> ID -> Other Information

There is a common table for collecting metadata about the remaining table in EntityId in those tables The field represents "id" (a physical alien key is not created between the sync and the remaining table)

I basically have the following query in SQL I want to execute,

s. Choose. , e. s connect to the left of the synchronization and s.entityid = E.id /

(Up to the unit in SQL, the unit should be replaced in the actual table, the customer, project or any other table in which Some data is included in the sync table)

Can someone give me some help or guidance on how to express that question in HQL?

Thanks Pablo.

For my knowledge, you can not directly do it, the HTML object is oriented and only matched entities And knows about relationships. You can get this job done by using a session.CreateSQLQuery and using ADNTT , so that the result of the SQL query is NHibernate in creating a NIT result.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -