-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: New to Hibernate need SQL converted to QueryOver
PostPosted: Thu Feb 21, 2013 2:54 pm 
Newbie

Joined: Thu Feb 21, 2013 2:30 pm
Posts: 1
Hello, I'm new to the Hibernate world and havent much info on how to do left joins using QueryOver. I'm trying to convert to following over to QueryOver. Thanks in advance.

select
        CommunicationMaster.CommunicationID as CommunicationID,
       
        Staff.StaffID as StaffID,
       
        CommunicationDetail.Status as Status
       
    from
        dbo.[shr_PC_Communication] CommunicationMaster
    inner join
        dbo.[shr_PC_Communication_Detail] CommunicationDetail
            on CommunicationMaster.CommunicationID=CommunicationDetail.CommunicationID
    left outer join
        dbo.[shr_Staffs] Staff
            on CommunicationDetail.StaffID=Staff.StaffID
      
    
    where
        (
            CommunicationMaster.Created_Date between @p0 and @p1
        )
        and (
            CommunicationMaster.IsRemoved is null
        )
        
        and (
            CommunicationDetail.IsArchived is null
        )
        and (
            CommunicationDetail.Status in (
                @p3
            )
        )
        and (
            Staff.StaffID in (
                @p4
            )
        );


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.