Blame view

src/main/java/fr/plil/sio/examen/api/Comment.java 677 Bytes
589e1ad3   jcartign   First version
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  package fr.plil.sio.examen.api;

  

  /**

   * A comment is made by an reporter (i.e. an owner) on ANY animal 

   * (not only the ones he owns).

   * An reporter can have zero, one or more comments on any animal (i.e. it can

   * exists several comments from the same reporter on the same animal).

   * An animal can have zero, one or more comments by any reporter (i.e. it can

   * exists several comments from the same reporter on the same animal).

   * 

   * TODO: complete the classes in API to support comment serialization in the 

   * database.

   */

  public class Comment {

      

      private Owner reporter;

      

      private Animal animal;

      

      private String message;

  }