| Issue 14: | bikin AppServiceImpl, implemen method saveMovie () | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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);
....
|