METHOD_0 ( ) { org . hibernate . IDENT_0 session = sf . METHOD_1 ( ) ; org . hibernate . IDENT_1 transaction = session . METHOD_2 ( ) ; com . IDENT_2 . hibernate . entity . IDENT_3 IDENT_4 = new com . IDENT_2 . hibernate . entity . METHOD_3 ( STRING_0 ) ; session . save ( IDENT_4 ) ; com . IDENT_2 . hibernate . entity . IDENT_5 entity = new com . IDENT_2 . hibernate . entity . METHOD_4 ( ) ; entity . setId ( 1L ) ; entity . setName ( STRING_1 ) ; entity . setValue ( FLOAT_0 ) ; entity . METHOD_5 ( new java . util . Date ( java . lang . System . currentTimeMillis ( ) ) ) ; entity . METHOD_6 ( new java . util . HashSet < com . IDENT_2 . hibernate . entity . METHOD_3 > ( java . util . Collections . singletonList ( IDENT_4 ) ) ) ; session . save ( entity ) ; transaction . commit ( ) ; session . close ( ) ; session = sf . METHOD_1 ( ) ; transaction = session . METHOD_2 ( ) ; com . IDENT_2 . hibernate . entity . METHOD_3 property = new com . IDENT_2 . hibernate . entity . METHOD_3 ( STRING_2 ) ; session . save ( property ) ; entity = ( ( com . IDENT_2 . hibernate . entity . METHOD_4 ) ( session . get ( com . IDENT_2 . hibernate . entity . METHOD_4 . class , 1L ) ) ) ; java . util . HashSet < com . IDENT_2 . hibernate . entity . METHOD_3 > IDENT_6 = new java . util . HashSet < com . IDENT_2 . hibernate . entity . METHOD_3 > ( ) ; IDENT_6 . add ( property ) ; entity . METHOD_6 ( IDENT_6 ) ; session . update ( entity ) ; transaction . commit ( ) ; session . close ( ) ; session = sf . METHOD_1 ( ) ; entity = ( ( com . IDENT_2 . hibernate . entity . METHOD_4 ) ( session . load ( com . IDENT_2 . hibernate . entity . METHOD_4 . class , entity . getId ( ) ) ) ) ; "<AssertPlaceHolder>" ; session . close ( ) ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( STRING_1 , entity . getName ( ) )