Welcome! Here you can paste sources and general debugging text, You can even set yourself a password if you want to keep it just for yourself.

Posted by DAODTO on March Wed 16th 11:57 PM - Never Expires
Download | New paste

  1. Table: Message
  2. ==============
  3. id
  4. titre
  5. contenu
  6.  
  7. ================================================
  8.  
  9. class MessageDTO {
  10.   int id;
  11.   String titre;
  12.   String contenu;
  13.  
  14.   // Getters ...
  15.   // Setters ...
  16. }
  17.  
  18. ================================================
  19.  
  20. class MessageDAO {
  21.  
  22.   public MessageDTO getById(int id) {
  23.     // ya3mel cnx lel bd
  24.     MessageDTO message = new MessageDTO();
  25.     // ylawej 3al id
  26.     message.setId(id);
  27.     message.setTitre(titre);
  28.     message.setContenu(contenu);
  29.     return message;
  30.   }
  31. }
Language:
To highlight particular lines, prefix each line with @@





Hosted by KanGouLya for OpenTunisia
Donate for OpenTunisia Servers.
Powered by PHPaste 1.1