My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 14: bikin AppServiceImpl, implemen method saveMovie ()
1 person starred this issue and may be notified of changes. Back to list
 
Project Member Reported by abet.se...@gmail.com, May 10, 2011
buat seperti berikut:

@Service("appService")
@Transactional(readOnly=true)
public class AppServiceImpl implements AppService {
    @Autowired 
    private SessionFactory sessionFactory;

    @Override
    @Transactional(readOnly=false)
    public void saveMovie(Movie movie) {
        sessionFactory.getCurrentSession().saveOrUpdate(movie);
....

Powered by Google Project Hosting