5859606162636465666768
Integer quantity = ( Integer ) cart.get( itemId ); order.add( item, quantity.intValue( ) ); } /* Save */ s.save( order ); tx.commit( ); /* Empty the cart */ getCart( ).clear( );
6970717273747576777879
session = _sessionFactory.openSession( ); BookmarkImpl bk = new BookmarkImpl( null, title, url.toString(), description, user ); tx = session.beginTransaction( ); session.save( bk ); tx.commit( ); return bk.getId( ); } catch ( HibernateException e )