METHOD_0 ( ) { final org . hibernate . IDENT_0 criteria = session . METHOD_1 ( com . baeldung . persistence . model . IDENT_1 . class , STRING_0 ) ; criteria . METHOD_2 ( org . hibernate . IDENT_2 . IDENT_3 . METHOD_3 ( "name" ) . METHOD_4 ( IDENT_4 . IDENT_5 ) ) ; final java . util . List < com . baeldung . persistence . model . IDENT_1 > IDENT_6 = criteria . list ( ) ; "<AssertPlaceHolder>" ; for ( final com . baeldung . persistence . model . IDENT_1 IDENT_7 : IDENT_6 ) { System . out . println ( ( ( ( STRING_1 + ( IDENT_7 . getId ( ) ) ) + STRING_2 ) + ( IDENT_7 . getName ( ) ) ) ) ; } } get ( java . lang . Integer ) { return IDENT_8 . METHOD_5 ( org . hibernate . IDENT_9 . class ) . METHOD_6 ( ) . get ( org . baeldung . IDENT_10 . model . IDENT_1 . class , id ) ; }
org . junit . Assert . assertNull ( IDENT_6 . get ( ( ( IDENT_6 . toArray ( ) . length ) - 1 ) ) . getName ( ) )