Debug level Hibernate log excerpt:
14:23:41,126 DEBUG SessionImpl:220 - opened session at timestamp: 4763704610115584
14:24:20,483 DEBUG QueryPlanCache:70 - unable to locate HQL query plan in cache; generating (FROM Student AS student WHERE student.generalEdFte= ? AND student.studentStatus.locallyEnrolled = TRUE)
14:24:21,290 DEBUG QueryTranslatorImpl:246 - parse() - HQL: FROM SOpen.spm.dao.Student AS student WHERE student.generalEdFte= ? AND student.studentStatus.locallyEnrolled = TRUE
14:24:21,669 DEBUG AST:266 - --- HQL AST ---
\-[QUERY] 'query'
+-[SELECT_FROM] 'SELECT_FROM'
| \-[FROM] 'FROM'
| \-[RANGE] 'RANGE'
| +-[DOT] '.'
| | +-[DOT] '.'
| | | +-[DOT] '.'
| | | | +-[IDENT] 'SOpen'
| | | | \-[IDENT] 'spm'
| | | \-[IDENT] 'dao'
| | \-[IDENT] 'Student'
| \-[ALIAS] 'student'
\-[WHERE] 'WHERE'
\-[AND] 'AND'
+-[EQ] '='
| +-[DOT] '.'
| | +-[IDENT] 'student'
| | \-[IDENT] 'generalEdFte'
| \-[PARAM] '?'
\-[EQ] '='
+-[DOT] '.'
| +-[DOT] '.'
| | +-[IDENT] 'student'
| | \-[IDENT] 'studentStatus'
| \-[IDENT] 'locallyEnrolled'
\-[TRUE] 'TRUE'
14:24:21,703 DEBUG ErrorCounter:68 - throwQueryException() : no errors
14:24:21,890 DEBUG HqlSqlBaseWalker:111 - select << begin [level=1, statement=select]
14:24:21,976 DEBUG FromElement:105 - FromClause{level=1} : SOpen.spm.dao.Student (student) -> student0_
14:24:22,002 DEBUG FromReferenceNode:51 - Resolved : student -> student0_.primary_key
14:24:22,015 DEBUG DotNode:541 - getDataType() : generalEdFte -> org.hibernate.type.FloatType@324ff
14:24:22,026 DEBUG FromReferenceNode:51 - Resolved : student.generalEdFte -> student0_.general_ed_fte
14:24:22,069 DEBUG FromReferenceNode:51 - Resolved : student -> student0_.primary_key
14:24:22,081 DEBUG DotNode:541 - getDataType() : studentStatus -> org.hibernate.type.ManyToOneType(SOpen.spm.dao.StudentStatus)
14:24:22,095 DEBUG DotNode:348 - dereferenceEntityJoin() : generating join for studentStatus in SOpen.spm.dao.Student {no alias} parent = [ ( . ( . student0_.primary_key studentStatus ) locallyEnrolled ) ]
14:24:22,134 DEBUG FromElement:105 - FromClause{level=1} : SOpen.spm.dao.StudentStatus (no alias) -> studentsta1_
14:24:22,146 DEBUG FromClause:233 - addJoinByPathMap() : student.studentStatus -> student_status_code studentsta1_
14:24:22,158 DEBUG FromReferenceNode:51 - Resolved : student.studentStatus -> student0_.student_status_id
14:24:22,170 DEBUG DotNode:541 - getDataType() : locallyEnrolled -> org.hibernate.type.BooleanType@c7539
14:24:22,181 DEBUG FromReferenceNode:51 - Resolved : student.studentStatus.locallyEnrolled -> studentsta1_.is_locally_enrolled
14:24:22,200 DEBUG HqlSqlBaseWalker:117 - select : finishing up [level=1, statement=select]
14:24:22,213 DEBUG HqlSqlWalker:516 - processQuery() : ( SELECT ( FromClause{level=1} Student student0_ student_status_code studentsta1_ ) ( WHERE ( AND ( = ( student0_.general_ed_fte student0_.primary_key generalEdFte ) ? ) ( = ( studentsta1_.is_locally_enrolled ( student0_.student_status_id student0_.primary_key studentStatus ) locallyEnrolled ) true ) ) ) )
14:24:22,280 DEBUG HqlSqlWalker:723 - Derived SELECT clause created.
14:24:22,305 DEBUG SyntheticAndFactory:58 - Using WHERE fragment [student0_.student_status_id=studentsta1_.primary_key]
14:24:22,316 DEBUG JoinProcessor:129 - Using FROM fragment [Student student0_]
14:24:22,325 DEBUG HqlSqlBaseWalker:123 - select >> end [level=1, statement=select]
14:24:22,363 DEBUG AST:232 - --- SQL AST ---
\-[SELECT] QueryNode: 'SELECT' querySpaces (Student,student_status_code)
+-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
| +-[SELECT_EXPR] SelectExpressionImpl: 'student0_.primary_key as primary1_45_' {FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=student,role=null,tableName=Student,tableAlias=student0_,origin=null,colums={,className=SOpen.spm.dao.Student}}}
| \-[SQL_TOKEN] SqlFragment: 'student0_.record_version as record2_45_, student0_.root_key as root3_45_, student0_.birth_date as birth4_45_, student0_.student_number as student5_45_, student0_.primary_gender as primary6_45_, student0_.general_ed_fte as general7_45_, student0_.first_name as first8_45_, student0_.last_name as last9_45_, student0_.middle_name as middle10_45_, student0_.generation_name as generation11_45_, student0_.home_address_id as home12_45_, student0_.home_phone as home13_45_, student0_.school_year_id as school14_45_, student0_.primary_location_id as primary15_45_, student0_.student_status_id as student16_45_, student0_.primary_ethnicity_id as primary17_45_, student0_.home_language_id as home18_45_, student0_.adult_status_id as adult19_45_, student0_.at_risk_id as at20_45_, student0_.citizenship_id as citizen21_45_, student0_.dual_enroll_id as dual22_45_, student0_.english_as_second_language_id as english23_45_, student0_.free_lunch_id as free24_45_, student0_.gifted_talented_id as gifted25_45_, student0_.homeless_id as homeless26_45_, student0_.immigrant_id as immigrant27_45_, student0_.migrant_id as migrant28_45_, student0_.limited_english_proficient_id as limited29_45_, student0_.parental_status_id as parental30_45_, student0_.title1_elig_id as title31_45_, student0_.instructional_setting_id as instruc32_45_, student0_.special_ed_code_id as special33_45_, student0_.economic_status_id as economic34_45_, student0_.attendance_eligibility_id as attendance35_45_, student0_.vocational_class_id as vocational36_45_, student0_.locker_num_id as locker37_45_, student0_.bus_route_id as bus38_45_, student0_.grade_catalog_id as grade39_45_, student0_.room_catalog_id as room40_45_, student0_.unlisted_phone as unlisted41_45_, student0_.counselor_id as counselor42_45_, student0_.teacher_of_record_id as teacher43_45_, student0_.change_reason_id as change44_45_, student0_.change_comments as change45_45_, student0_.change_effective_date as change46_45_, student0_.change_effective_through as change47_45_, student0_.snapshot_order as snapshot48_45_, student0_.GUID as GUID45_, student0_.changed_by_user as changed50_45_, student0_.changed_at as changed51_45_, student0_.created_at as created52_45_, student0_.created_by_user as created53_45_'
+-[FROM] FromClause: 'FROM' FromClause{level=1, fromElementCounter=2, fromElements=2, fromElementByClassAlias=[student], fromElementByTableAlias=[student0_, studentsta1_], fromElementsByPath=[student.studentStatus], collectionJoinFromElementsByPath=[], impliedElements=[]}
| +-[FROM_FRAGMENT] FromElement: 'Student student0_' FromElement{explicit,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=student,role=null,tableName=Student,tableAlias=student0_,origin=null,colums={,className=SOpen.spm.dao.Student}}
| \-[FROM_FRAGMENT] ImpliedFromElement: 'student_status_code studentsta1_' ImpliedFromElement{implied,not a collection join,not a fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=student_status_code,tableAlias=studentsta1_,origin=Student student0_,colums={student0_.student_status_id ,className=SOpen.spm.dao.StudentStatus}}
\-[WHERE] SqlNode: 'WHERE'
+-[THETA_JOINS] SqlNode: '{theta joins}'
| \-[SQL_TOKEN] SqlFragment: 'student0_.student_status_id=studentsta1_.primary_key'
\-[AND] SqlNode: 'AND'
+-[EQ] BinaryLogicOperatorNode: '='
| +-[DOT] DotNode: 'student0_.general_ed_fte' {propertyName=generalEdFte,dereferenceType=4,propertyPath=generalEdFte,path=student.generalEdFte,tableAlias=student0_,className=SOpen.spm.dao.Student,classAlias=student}
| | +-[ALIAS_REF] IdentNode: 'student0_.primary_key' {alias=student, className=SOpen.spm.dao.Student, tableAlias=student0_}
| | \-[IDENT] IdentNode: 'generalEdFte' {originalText=generalEdFte}
| \-[PARAM] ParameterNode: '?' {ordinal=0, expectedType=org.hibernate.type.FloatType@324ff}
\-[EQ] BinaryLogicOperatorNode: '='
+-[DOT] DotNode: 'studentsta1_.is_locally_enrolled' {propertyName=locallyEnrolled,dereferenceType=4,propertyPath=locallyEnrolled,path=student.studentStatus.locallyEnrolled,tableAlias=studentsta1_,className=SOpen.spm.dao.StudentStatus,classAlias=null}
| +-[DOT] DotNode: 'student0_.student_status_id' {propertyName=studentStatus,dereferenceType=1,propertyPath=studentStatus,path=student.studentStatus,tableAlias=studentsta1_,className=SOpen.spm.dao.StudentStatus,classAlias=null}
| | +-[ALIAS_REF] IdentNode: 'student0_.primary_key' {alias=student, className=SOpen.spm.dao.Student, tableAlias=student0_}
| | \-[IDENT] IdentNode: 'studentStatus' {originalText=studentStatus}
| \-[IDENT] IdentNode: 'locallyEnrolled' {originalText=locallyEnrolled}
\-[TRUE] BooleanLiteralNode: 'true'
14:24:22,483 DEBUG ErrorCounter:68 - throwQueryException() : no errors
14:24:22,535 DEBUG QueryTranslatorImpl:216 - HQL: FROM SOpen.spm.dao.Student AS student WHERE student.generalEdFte= ? AND student.studentStatus.locallyEnrolled = TRUE
14:24:22,546 DEBUG QueryTranslatorImpl:217 - SQL: select student0_.primary_key as primary1_45_, student0_.record_version as record2_45_, student0_.root_key as root3_45_, student0_.birth_date as birth4_45_, student0_.student_number as student5_45_, student0_.primary_gender as primary6_45_, student0_.general_ed_fte as general7_45_, student0_.first_name as first8_45_, student0_.last_name as last9_45_, student0_.middle_name as middle10_45_, student0_.generation_name as generation11_45_, student0_.home_address_id as home12_45_, student0_.home_phone as home13_45_, student0_.school_year_id as school14_45_, student0_.primary_location_id as primary15_45_, student0_.student_status_id as student16_45_, student0_.primary_ethnicity_id as primary17_45_, student0_.home_language_id as home18_45_, student0_.adult_status_id as adult19_45_, student0_.at_risk_id as at20_45_, student0_.citizenship_id as citizen21_45_, student0_.dual_enroll_id as dual22_45_, student0_.english_as_second_language_id as english23_45_, student0_.free_lunch_id as free24_45_, student0_.gifted_talented_id as gifted25_45_, student0_.homeless_id as homeless26_45_, student0_.immigrant_id as immigrant27_45_, student0_.migrant_id as migrant28_45_, student0_.limited_english_proficient_id as limited29_45_, student0_.parental_status_id as parental30_45_, student0_.title1_elig_id as title31_45_, student0_.instructional_setting_id as instruc32_45_, student0_.special_ed_code_id as special33_45_, student0_.economic_status_id as economic34_45_, student0_.attendance_eligibility_id as attendance35_45_, student0_.vocational_class_id as vocational36_45_, student0_.locker_num_id as locker37_45_, student0_.bus_route_id as bus38_45_, student0_.grade_catalog_id as grade39_45_, student0_.room_catalog_id as room40_45_, student0_.unlisted_phone as unlisted41_45_, student0_.counselor_id as counselor42_45_, student0_.teacher_of_record_id as teacher43_45_, student0_.change_reason_id as change44_45_, student0_.change_comments as change45_45_, student0_.change_effective_date as change46_45_, student0_.change_effective_through as change47_45_, student0_.snapshot_order as snapshot48_45_, student0_.GUID as GUID45_, student0_.changed_by_user as changed50_45_, student0_.changed_at as changed51_45_, student0_.created_at as created52_45_, student0_.created_by_user as created53_45_ from Student student0_, student_status_code studentsta1_ where student0_.student_status_id=studentsta1_.primary_key and student0_.general_ed_fte=? and studentsta1_.is_locally_enrolled=true
14:24:22,593 DEBUG ErrorCounter:68 - throwQueryException() : no errors
14:24:22,641 DEBUG HQLQueryPlan:269 - HQL param location recognition took 14 mills (FROM Student AS student WHERE student.generalEdFte= ? AND student.studentStatus.locallyEnrolled = TRUE)
|