你看控制臺打印出來的HQL語句是什麽樣的?

解决方案 »

  1.   

    Hibernate: select this_.Id as Id75_0_, this_.ProjectID as ProjectID75_0_, this_.HRID as HRID75_0_, this_.ProjectNo as ProjectNo75_0_ from sim.dbo.ProjectCatalogHr this_ where (1=1)
    Hibernate: select projectcat0_.ID as ID74_0_, projectcat0_.ProjectRank as ProjectR2_74_0_, projectcat0_.ManagerID as ManagerID74_0_, projectcat0_.ContractID as ContractID74_0_, projectcat0_.ProjectID as ProjectID74_0_, projectcat0_.ProjectName as ProjectN6_74_0_, projectcat0_.ProjectSource as ProjectS7_74_0_, projectcat0_.BeginTime as BeginTime74_0_, projectcat0_.EndTime as EndTime74_0_, projectcat0_.MoneyUsed as MoneyUsed74_0_, projectcat0_.Organization as Organiz11_74_0_, projectcat0_.ActiveType as ActiveType74_0_, projectcat0_.CooperationType as Coopera13_74_0_, projectcat0_.CourseType as CourseType74_0_, projectcat0_.Progress as Progress74_0_, projectcat0_.ReturnFile as ReturnFile74_0_, projectcat0_.VHflag as VHflag74_0_, projectcat0_.CurrentYear as Current18_74_0_ from sim.dbo.ProjectCatalog projectcat0_ where projectcat0_.ID=?
    Hibernate: select projectpoi0_.ID as ID76_0_, projectpoi0_.ProjectType as ProjectT2_76_0_, projectpoi0_.ProjectWeight as ProjectW3_76_0_ from sim.dbo.ProjectPoint projectpoi0_ where projectpoi0_.ID=?
    Hibernate: select humanresou0_.HRID as HRID67_0_, humanresou0_.DutyID as DutyID67_0_, humanresou0_.Name as Name67_0_, humanresou0_.Gender as Gender67_0_, humanresou0_.Age as Age67_0_, humanresou0_.Birth as Birth67_0_, humanresou0_.LatestEduBack as LatestEd7_67_0_, humanresou0_.LatestAcadDeg as LatestAc8_67_0_, humanresou0_.Research as Research67_0_, humanresou0_.Department as Department67_0_, humanresou0_.Password as Password67_0_, humanresou0_.CurrentYear as Current12_67_0_ from sim.dbo.HumanResource humanresou0_ where humanresou0_.HRID=?
    Hibernate: select duty0_.DutyID as DutyID62_0_, duty0_.DutyName as DutyName62_0_ from sim.dbo.Duty duty0_ where duty0_.DutyID=?
    Hibernate: select humanresou0_.HRID as HRID67_0_, humanresou0_.DutyID as DutyID67_0_, humanresou0_.Name as Name67_0_, humanresou0_.Gender as Gender67_0_, humanresou0_.Age as Age67_0_, humanresou0_.Birth as Birth67_0_, humanresou0_.LatestEduBack as LatestEd7_67_0_, humanresou0_.LatestAcadDeg as LatestAc8_67_0_, humanresou0_.Research as Research67_0_, humanresou0_.Department as Department67_0_, humanresou0_.Password as Password67_0_, humanresou0_.CurrentYear as Current12_67_0_ from sim.dbo.HumanResource humanresou0_ where humanresou0_.HRID=?
    Hibernate: select duty0_.DutyID as DutyID62_0_, duty0_.DutyName as DutyName62_0_ from sim.dbo.Duty duty0_ where duty0_.DutyID=?
    Hibernate: select projectcat0_.ID as ID74_0_, projectcat0_.ProjectRank as ProjectR2_74_0_, projectcat0_.ManagerID as ManagerID74_0_, projectcat0_.ContractID as ContractID74_0_, projectcat0_.ProjectID as ProjectID74_0_, projectcat0_.ProjectName as ProjectN6_74_0_, projectcat0_.ProjectSource as ProjectS7_74_0_, projectcat0_.BeginTime as BeginTime74_0_, projectcat0_.EndTime as EndTime74_0_, projectcat0_.MoneyUsed as MoneyUsed74_0_, projectcat0_.Organization as Organiz11_74_0_, projectcat0_.ActiveType as ActiveType74_0_, projectcat0_.CooperationType as Coopera13_74_0_, projectcat0_.CourseType as CourseType74_0_, projectcat0_.Progress as Progress74_0_, projectcat0_.ReturnFile as ReturnFile74_0_, projectcat0_.VHflag as VHflag74_0_, projectcat0_.CurrentYear as Current18_74_0_ from sim.dbo.ProjectCatalog projectcat0_ where projectcat0_.ID=?
    Hibernate: select projectpoi0_.ID as ID76_0_, projectpoi0_.ProjectType as ProjectT2_76_0_, projectpoi0_.ProjectWeight as ProjectW3_76_0_ from sim.dbo.ProjectPoint projectpoi0_ where projectpoi0_.ID=?
    Hibernate: select programmon0_.ProjectCatalogID as ProjectC2_1_, programmon0_.PCSerial as PCSerial1_, programmon0_.PCSerial as PCSerial73_0_, programmon0_.ProjectCatalogID as ProjectC2_73_0_, programmon0_.MoneyArrived as MoneyArr3_73_0_, programmon0_.MoneyArrivedTime as MoneyArr4_73_0_ from sim.dbo.ProgramMoneyDate programmon0_ where programmon0_.ProjectCatalogID=?
    Hibernate: select projectcat0_.ProjectID as ProjectID1_, projectcat0_.Id as Id1_, projectcat0_.Id as Id75_0_, projectcat0_.ProjectID as ProjectID75_0_, projectcat0_.HRID as HRID75_0_, projectcat0_.ProjectNo as ProjectNo75_0_ from sim.dbo.ProjectCatalogHr projectcat0_ where projectcat0_.ProjectID=?
    Hibernate: select programmon0_.ProjectCatalogID as ProjectC2_1_, programmon0_.PCSerial as PCSerial1_, programmon0_.PCSerial as PCSerial73_0_, programmon0_.ProjectCatalogID as ProjectC2_73_0_, programmon0_.MoneyArrived as MoneyArr3_73_0_, programmon0_.MoneyArrivedTime as MoneyArr4_73_0_ from sim.dbo.ProgramMoneyDate programmon0_ where programmon0_.ProjectCatalogID=?
    Hibernate: select projectcat0_.ProjectID as ProjectID1_, projectcat0_.Id as Id1_, projectcat0_.Id as Id75_0_, projectcat0_.ProjectID as ProjectID75_0_, projectcat0_.HRID as HRID75_0_, projectcat0_.ProjectNo as ProjectNo75_0_ from sim.dbo.ProjectCatalogHr projectcat0_ where projectcat0_.ProjectID=?