framework-web:spring:models

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
framework-web:spring:models [2019/02/28 15:56] – [Relations] jcheronframework-web:spring:models [2019/08/31 14:21] (Version actuelle) – modification externe 127.0.0.1
Ligne 86: Ligne 86:
  @ResponseBody  @ResponseBody
  public String newOrga(Organization orga) {  public String newOrga(Organization orga) {
- repo.save(orga);+ repo.saveAndFlush(orga);
  return orga+" ajoutée.";  return orga+" ajoutée.";
  }  }
Ligne 162: Ligne 162:
  @ManyToMany  @ManyToMany
  @JoinTable(name = "user_group")  @JoinTable(name = "user_group")
- private List<Groupegroupes;+ private List<Userusers;
 } }
 </sxh> </sxh>
  • framework-web/spring/models.1551365819.txt.gz
  • Dernière modification : il y a 6 ans
  • (modification externe)