1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
   |  
class MaClasse
{
     long         id;
     string       name;
     string       type;
     UneAutreClasse* options;
 
     long     getId() const
     { return id; }
 
     string   getName() const
     { currentSession().init(this); return name; }
 
     void     setName(string t)
     { name = t; currentSession().modified(this,"name"); }
 
     string   getType() const
     { currentSession().init(this); return type; }
 
     void     setType(string t)
     { type = t; currentSession().modified(this,"type"); }
 
     MonAutreClasse* getOptions() const
     { currentSession().init(this); return options; }
 
     void     setOptions(MonAutreClasse* opt)
     { options = t; currentSession().modified(this,"options"); }
}; | 
Partager