~acgvision-devel/acgvision/5.1.6-debian

« back to all changes in this revision

Viewing changes to src/java/com/acgvision/core/controller/ActionSaveService.java

  • Committer: Rémi Debay
  • Date: 2010-05-07 14:05:37 UTC
  • mfrom: (2.1.10 acgvision-core)
  • Revision ID: remi@sta003-acg-20100507140537-delzzgm21uowus92
Ajout de flush avant de sauvegarder certaines valeurs

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                    tx.commit();
59
59
                    tx = session.beginTransaction();
60
60
                } else {
 
61
 
61
62
                    currentInDb = new Service();
62
63
 
63
64
                    currentInDb.setName(s.getName());
64
65
                    currentInDb.setDescription(s.getDescription());
65
66
                    logger.debug("Service id is "+currentInDb.getId());
 
67
                    session.flush();
66
68
                    session.save(currentInDb);
67
69
                    logger.debug("Service id is "+currentInDb.getId());
68
70
                    tx.commit();