Skip to content

Commit

Permalink
BeginDate CodeFix
Browse files Browse the repository at this point in the history
  • Loading branch information
semalaiappan committed Nov 15, 2023
1 parent 3a60e44 commit 493ddba
Show file tree
Hide file tree
Showing 13 changed files with 1,465 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aaa.Id as id,
comp_aaa.SectionIdentifier as sectionIdentifier,
comp_aaa.SequenceOfCourse as sequenceOfCourse,
comp_aab.Namespace as educationalEnvironmentDescriptor__Namespace,
comp_aab.CodeValue as educationalEnvironmentDescriptor,
comp_aaa.AvailableCredits as availableCredits,
comp_aae.Namespace as maximumAvailableCreditTypeDescriptor__Namespace,
comp_aae.CodeValue as maximumAvailableCreditTypeDescriptor,
comp_aag.LocalCourseCode as localCourseCode,
comp_aag.LocalCourseTitle as localCourseTitle
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
left join comp_aaa.EducationalEnvironmentDescriptor comp_aab
join comp_aaa.CourseOffering comp_aac
join comp_aac.Course comp_aad
left join comp_aad.MaximumAvailableCreditTypeDescriptor comp_aae
join comp_aaa.CourseOffering comp_aaf
join comp_aaa.CourseOffering comp_aag
where comp_aaa.Id = :Id AND ( (comp_aaa.SchoolId IN (
SELECT fltr_aal.TargetEducationOrganizationId
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToEducationOrganizationId fltr_aal
WHERE fltr_aal.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))))
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aah.ClassPeriodName as PK2a_ClassPeriodName,
comp_aah.ClassPeriodName as classPeriodName
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
join comp_aaa.SectionClassPeriods comp_aah
where comp_aaa.Id IN (:BaseEntityId)
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName,
comp_aah.ClassPeriodName
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aai.BeginDate as PK2b_BeginDate,
comp_aai.StaffUSI as PK2b_StaffUSI,
comp_aaj.Id as id,
comp_aaj.StaffUniqueId as staffUniqueId
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
join comp_aaa.StaffSectionAssociations comp_aai
join comp_aai.Staff comp_aaj
where comp_aaa.Id IN (:BaseEntityId) AND ( (comp_aai.SchoolId IN (
SELECT fltr_aal.TargetEducationOrganizationId
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToEducationOrganizationId fltr_aal
WHERE fltr_aal.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))) AND (comp_aai.StaffUSI IN (
SELECT fltr_aab.StaffUSI
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToStaffUSI fltr_aab
WHERE fltr_aab.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))))
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName,
comp_aai.BeginDate,
comp_aai.StaffUSI
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aal.BeginDate as PK2c_BeginDate,
comp_aal.StudentUSI as PK2c_StudentUSI,
comp_aal.BeginDate as enrollmentBeginDate,
comp_aal.EndDate as enrollmentEndDate,
comp_aam.Id as id,
comp_aam.StudentUniqueId as studentUniqueId
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
join comp_aaa.StudentSectionAssociations comp_aal
join comp_aal.Student comp_aam
where comp_aaa.Id IN (:BaseEntityId) AND ( (comp_aal.SchoolId IN (
SELECT fltr_aal.TargetEducationOrganizationId
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToEducationOrganizationId fltr_aal
WHERE fltr_aal.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))) AND (comp_aal.StudentUSI IN (
SELECT fltr_aac.StudentUSI
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToStudentUSI fltr_aac
WHERE fltr_aac.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))))
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName,
comp_aal.BeginDate,
comp_aal.StudentUSI
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aar.Id as id,
comp_aar.SchoolId as schoolId,
comp_aar.SchoolYear as schoolYear,
comp_aas.Namespace as termDescriptor__Namespace,
comp_aas.CodeValue as termDescriptor,
comp_aar.SessionName as sessionName,
comp_aar.BeginDate as beginDate,
comp_aar.EndDate as endDate,
comp_aar.TotalInstructionalDays as totalInstructionalDays
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
join comp_aaa.CourseOffering comp_aao
join comp_aao.Course comp_aap
join comp_aaa.CourseOffering comp_aaq
join comp_aaq.Session comp_aar
left join comp_aar.TermDescriptor comp_aas
where comp_aaa.Id IN (:BaseEntityId) AND ( (comp_aar.SchoolId IN (
SELECT fltr_aal.TargetEducationOrganizationId
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToEducationOrganizationId fltr_aal
WHERE fltr_aal.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))))
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aau.Id as id,
comp_aau.SchoolId as schoolId,
comp_aau.ClassroomIdentificationCode as classroomIdentificationCode
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
join comp_aaa.CourseOffering comp_aao
join comp_aao.Course comp_aap
join comp_aaa.CourseOffering comp_aaq
join comp_aaa.CourseOffering comp_aat
join comp_aaa.Location comp_aau
where comp_aaa.Id IN (:BaseEntityId) AND ( (comp_aau.SchoolId IN (
SELECT fltr_aal.TargetEducationOrganizationId
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToEducationOrganizationId fltr_aal
WHERE fltr_aal.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))))
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aaa.Id as id,
comp_aaa.SectionIdentifier as sectionIdentifier,
comp_aaa.SequenceOfCourse as sequenceOfCourse,
comp_aaf.Namespace as educationalEnvironmentDescriptor__Namespace,
comp_aaf.CodeValue as educationalEnvironmentDescriptor,
comp_aaa.AvailableCredits as availableCredits,
comp_aai.Namespace as maximumAvailableCreditTypeDescriptor__Namespace,
comp_aai.CodeValue as maximumAvailableCreditTypeDescriptor,
comp_aak.LocalCourseCode as localCourseCode,
comp_aak.LocalCourseTitle as localCourseTitle
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
left join comp_aaa.EducationalEnvironmentDescriptor comp_aaf
join comp_aaa.CourseOffering comp_aag
join comp_aag.Course comp_aah
left join comp_aah.MaximumAvailableCreditTypeDescriptor comp_aai
join comp_aaa.CourseOffering comp_aaj
join comp_aaa.CourseOffering comp_aak
join comp_aaa.CourseOffering comp_aab
join comp_aab.Session comp_aac
join comp_aac.School comp_aad
join comp_aad.LocalEducationAgency comp_aae
where comp_aae.Id = :LocalEducationAgency_Id AND ( (comp_aaa.SchoolId IN (
SELECT fltr_aal.TargetEducationOrganizationId
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToEducationOrganizationId fltr_aal
WHERE fltr_aal.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))))
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aal.ClassPeriodName as PK2a_ClassPeriodName,
comp_aal.ClassPeriodName as classPeriodName
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
join comp_aaa.SectionClassPeriods comp_aal
where comp_aaa.Id IN (:BaseEntityId)
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName,
comp_aal.ClassPeriodName
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aam.StaffUSI as PK2b_StaffUSI,
comp_aan.Id as id,
comp_aan.StaffUniqueId as staffUniqueId
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
join comp_aaa.StaffSectionAssociations comp_aam
join comp_aam.Staff comp_aan
where comp_aaa.Id IN (:BaseEntityId) AND ( (comp_aam.SchoolId IN (
SELECT fltr_aal.TargetEducationOrganizationId
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToEducationOrganizationId fltr_aal
WHERE fltr_aal.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))) AND (comp_aam.StaffUSI IN (
SELECT fltr_aab.StaffUSI
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToStaffUSI fltr_aab
WHERE fltr_aab.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))))
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName,
comp_aam.StaffUSI
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aap.BeginDate as PK2c_BeginDate,
comp_aap.StudentUSI as PK2c_StudentUSI,
comp_aap.BeginDate as enrollmentBeginDate,
comp_aap.EndDate as enrollmentEndDate,
comp_aaq.Id as id,
comp_aaq.StudentUniqueId as studentUniqueId
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
join comp_aaa.StudentSectionAssociations comp_aap
join comp_aap.Student comp_aaq
where comp_aaa.Id IN (:BaseEntityId) AND ( (comp_aap.SchoolId IN (
SELECT fltr_aal.TargetEducationOrganizationId
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToEducationOrganizationId fltr_aal
WHERE fltr_aal.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))) AND (comp_aap.StudentUSI IN (
SELECT fltr_aac.StudentUSI
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToStudentUSI fltr_aac
WHERE fltr_aac.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))))
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName,
comp_aap.BeginDate,
comp_aap.StudentUSI
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aav.Id as id,
comp_aav.SchoolId as schoolId,
comp_aav.SchoolYear as schoolYear,
comp_aaw.Namespace as termDescriptor__Namespace,
comp_aaw.CodeValue as termDescriptor,
comp_aav.SessionName as sessionName,
comp_aav.BeginDate as beginDate,
comp_aav.EndDate as endDate,
comp_aav.TotalInstructionalDays as totalInstructionalDays
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
join comp_aaa.CourseOffering comp_aas
join comp_aas.Course comp_aat
join comp_aaa.CourseOffering comp_aau
join comp_aau.Session comp_aav
left join comp_aav.TermDescriptor comp_aaw
where comp_aaa.Id IN (:BaseEntityId) AND ( (comp_aav.SchoolId IN (
SELECT fltr_aal.TargetEducationOrganizationId
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToEducationOrganizationId fltr_aal
WHERE fltr_aal.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))))
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName
HQL:
select
comp_aaa.Id As __BaseEntityId__,
comp_aaa.LocalCourseCode as PK1a_LocalCourseCode,
comp_aaa.SchoolId as PK1a_SchoolId,
comp_aaa.SchoolYear as PK1a_SchoolYear,
comp_aaa.SectionIdentifier as PK1a_SectionIdentifier,
comp_aaa.SessionName as PK1a_SessionName,
comp_aay.Id as id,
comp_aay.SchoolId as schoolId,
comp_aay.ClassroomIdentificationCode as classroomIdentificationCode
from
EdFi.Ods.Entities.NHibernate.QueryModels.SectionAggregate.EdFi.SectionQ comp_aaa
join comp_aaa.CourseOffering comp_aas
join comp_aas.Course comp_aat
join comp_aaa.CourseOffering comp_aau
join comp_aaa.CourseOffering comp_aax
join comp_aaa.Location comp_aay
where comp_aaa.Id IN (:BaseEntityId) AND ( (comp_aay.SchoolId IN (
SELECT fltr_aal.TargetEducationOrganizationId
FROM EdFi.Ods.Entities.NHibernate.QueryModels.Views.auth_EducationOrganizationIdToEducationOrganizationId fltr_aal
WHERE fltr_aal.SourceEducationOrganizationId IN (:ClaimEducationOrganizationIds))))
order by comp_aaa.LocalCourseCode,
comp_aaa.SchoolId,
comp_aaa.SchoolYear,
comp_aaa.SectionIdentifier,
comp_aaa.SessionName
Loading

0 comments on commit 493ddba

Please sign in to comment.