METHOD_0 ( ) { create ( uk . co . IDENT_0 . IDENT_1 . example . Person . class ) . field ( Person :: IDENT_2 ) . field ( Person :: IDENT_3 ) . field ( Person :: IDENT_4 ) . execute ( this :: IDENT_5 ) ; create ( uk . co . IDENT_0 . IDENT_1 . example . IDENT_6 . class ) . field ( IDENT_6 :: getName ) . execute ( this :: IDENT_5 ) ; create ( METHOD_1 ( uk . co . IDENT_0 . IDENT_1 . example . IDENT_6 . class , uk . co . IDENT_0 . IDENT_1 . example . Person . class ) ) . METHOD_2 ( IDENT_6 :: getName ) . METHOD_3 ( Person :: IDENT_2 ) . METHOD_3 ( Person :: IDENT_3 ) . execute ( this :: IDENT_5 ) ; delete ( uk . co . IDENT_0 . IDENT_1 . example . Person . class ) . execute ( this :: IDENT_5 ) ; delete ( uk . co . IDENT_0 . IDENT_1 . example . IDENT_6 . class ) . execute ( this :: IDENT_5 ) ; delete ( METHOD_1 ( uk . co . IDENT_0 . IDENT_1 . example . IDENT_6 . class , uk . co . IDENT_0 . IDENT_1 . example . Person . class ) ) . execute ( this :: IDENT_5 ) ; uk . co . IDENT_0 . IDENT_1 . example . Person IDENT_7 = new uk . co . IDENT_0 . IDENT_1 . example . Person ( STRING_0 , STRING_1 ) ; IDENT_7 . METHOD_4 ( 6 ) ; insert ( IDENT_7 ) . value ( Person :: IDENT_2 ) . value ( Person :: IDENT_3 ) . value ( Person :: IDENT_4 ) . execute ( this :: IDENT_5 ) ; uk . co . IDENT_0 . IDENT_1 . example . IDENT_6 IDENT_8 = new uk . co . IDENT_0 . IDENT_1 . example . METHOD_5 ( STRING_2 ) ; IDENT_8 . METHOD_6 ( ) . add ( IDENT_7 ) ; insert ( IDENT_8 ) . value ( METHOD_5 :: getName ) . execute ( this :: IDENT_5 ) ; IDENT_8 . METHOD_6 ( ) . METHOD_7 ( ( IDENT_9 ) -> { insert ( IDENT_8 , IDENT_9 ) . METHOD_8 ( uk . co . IDENT_0 . IDENT_1 . example . METHOD_5 :: getName ) . METHOD_9 ( uk . co . IDENT_0 . IDENT_1 . example . Person :: IDENT_3 ) . METHOD_9 ( uk . co . IDENT_0 . IDENT_1 . example . Person :: IDENT_2 ) . execute ( this :: IDENT_5 ) ; } ) ; uk . co . IDENT_0 . IDENT_1 . results . IDENT_10 < uk . co . IDENT_0 . IDENT_1 . example . Person > IDENT_11 = uk . co . IDENT_0 . IDENT_1 . results . IDENT_10 . mapper ( Person :: new ) . set ( Person :: IDENT_12 ) . set ( Person :: IDENT_13 ) . set ( Person :: METHOD_4 ) ; java . util . Optional < uk . co . IDENT_0 . IDENT_1 . example . Person > person = from ( uk . co . IDENT_0 . IDENT_1 . example . Person . class ) . METHOD_10 ( Person :: IDENT_3 ) . equalTo ( STRING_1 ) . join ( METHOD_1 ( uk . co . IDENT_0 . IDENT_1 . example . METHOD_5 . class , uk . co . IDENT_0 . IDENT_1 . example . Person . class ) . METHOD_11 ( ) ) . METHOD_12 ( Person :: IDENT_2 , Person :: IDENT_3 ) . join ( uk . co . IDENT_0 . IDENT_1 . example . METHOD_5 . class ) . METHOD_12 ( METHOD_5 :: getName ) . METHOD_10 ( METHOD_5 :: getName ) . equalTo ( STRING_2 ) . select ( IDENT_11 , this :: IDENT_5 ) ; "<AssertPlaceHolder>" ; delete ( METHOD_1 ( uk . co . IDENT_0 . IDENT_1 . example . METHOD_5 . class , uk . co . IDENT_0 . IDENT_1 . example . Person . class ) ) . METHOD_13 ( METHOD_5 :: getName ) . equalTo ( STRING_2 ) . METHOD_14 ( Person :: IDENT_3 ) . equalTo ( STRING_1 ) . execute ( this :: IDENT_5 ) ; } select ( uk . co . IDENT_0 . IDENT_1 . results . IDENT_10 , java . util . function . IDENT_14 ) { try ( java . sql . IDENT_15 conn = IDENT_16 . get ( ) ) { java . sql . ResultSet IDENT_17 = METHOD_15 ( conn ) ; return IDENT_17 . next ( ) ? java . util . Optional . of ( mapper . map ( IDENT_17 ) ) : java . util . Optional . < IDENT_18 > empty ( ) ; } }
org . junit . Assert . assertEquals ( IDENT_7 , person . get ( ) )