/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sudoku.data.sample;
import com.sudoku.data.model.*;
import java.util.List;
import java.sql.Timestamp;
import java.util.LinkedList;
/**
 *
 * @author Jonathan
 */
public class DataSample {
    // User et grid sont accesibles directement, servez-vous
    public User a,b;
    public Grid g1,g2,g3;
    
    
    DataSample(){
       //création du fake user a 
       a.setBirthdate("01/01/2001");
       a.setId(1);
       a.setCreateDate("04/11/2014");
       a.setIpAdress("192.168.0.27");
       a.setPseudo("User1");
       a.setProfilePicturePath("");
      
       
       //création du fake user b 
       b.setBirthdate("02/02/2002");
       b.setId(1);
       b.setCreateDate("04/11/2014");
       b.setIpAdress("192.168.0.28");
       b.setPseudo("User2");
       b.setProfilePicturePath("");
     
       //création de Grid g1
       List<Comment> comments = new LinkedList<Comment>();
       //Ajout de commentaires
       comments.add(new Comment("texte du commentaire 1".toString(),1));
       comments.add(new Comment("texte du commentaire 1".toString(),2));
       g1.setComments(comments);
       //Ajout de tags
       List<Tag> tags= new LinkedList<Tag>();
       tags.add(new Tag("Hard"));
       tags.add(new Tag("Awesome"));
       tags.add(new Tag("Wonderful"));
       g1.setTags(tags);
        
       g1.setCreateDate(new Timestamp(2014,11,4,14,48,0,0));
       g1.setCreateUser(a);
       g1.setDifficulty(3);
       g1.setDescription("This is the awesome grid n°1");
       g1.setId(1);
       
       //Création de Grid g2
       List<Comment> comments2 = new LinkedList<>();
       //Ajout de commentaires
       comments2.add(new Comment("texte du commentaire 1".toString(),1));
       comments2.add(new Comment("texte du commentaire 2".toString(),2));
       g2.setComments(comments2);
       //Ajout de tags
       List<Tag> tags2= new LinkedList<Tag>();
       tags2.add(new Tag("Hard2"));
       tags2.add(new Tag("Awesome2"));
       tags2.add(new Tag("Wonderful2"));
       g2.setTags(tags);
        
       g2.setCreateDate(new Timestamp(2014,11,4,14,48,0,0));
       g2.setCreateUser(a);
       g2.setDifficulty(4);
       g2.setDescription("This is the awesome grid n°2");
       g2.setId(2);
       
       //Création de Grid g3
       List<Comment> comments3 = new LinkedList<>();
       //Ajout de commentaires
       comments3.add(new Comment("texte du commentaire 1".toString(),1));
       comments3.add(new Comment("texte du commentaire 2".toString(),2));
       g3.setComments(comments3);
       //Ajout de tags
       List<Tag> tags3= new LinkedList<Tag>();
       tags3.add(new Tag("Hard2"));
       tags3.add(new Tag("Awesome2"));
       tags3.add(new Tag("Wonderful2"));
       g3.setTags(tags);
        
       g3.setCreateDate(new Timestamp(2014,11,4,14,48,0,0));
       g3.setCreateUser(b);
       g3.setDifficulty(4);
       g3.setDescription("This is the awesome grid n°2");
       g3.setId(2);
       
    }
     public List<User> getUserList(){
        List<User> users= new LinkedList<User>();
        users.add(a);
        users.add(b);
        return users;
    }
    
}


@@ -313,19 +313,103 @@
 til.
-LinkedList;
+Date;%0Aimport java.util.LinkedList;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Locale;%0A
 %0A/**
@@ -544,198 +544,119 @@
 er a
-,b;%0A    public Grid g1,g2,g3;%0A    %0A    %0A    DataSample()%7B%0A       //cr%C3%A9ation du fake user a %0A       a.setBirthd
+ = new User(%22User1%22, %22User1%22, new SimpleDateForm
 at
-e
 (%22
-01/01/2001%22);%0A       a.setId(1);%0A       a.setCreateDat
+dd/MM/yyyy%22, Locale.ENGLISH).pars
 e(%220
-4/1
+1/0
 1/20
-14
+01%22), %22
 %22);%0A    
    a
@@ -655,352 +655,188 @@
     
-   a.setIpAdress(%22192.168.0.27%22);%0A       a.setPseudo(%22User1%22);%0A       a.setProfilePictureP
+public User b = new User(%22User2%22, %22User2%22, new SimpleDateForm
 at
-h
 (%22
-%22);%0A      %0A       %0A       //cr%C3%A9ation du fake user b %0A       b.setBirthdat
+dd/MM/yyyy%22, Locale.ENGLISH).pars
 e(%220
-2/02/2002%22);%0A       b.setId(1);%0A       b.setCreateDate(%2204/11/2014%22);%0A       b.setIpAdress(%22192.168.0.28%22);
+1/01/2011%22), %22%22);%0A    public Grid g1,g2,g3;%0A    
 %0A    
+%0A 
    
-b.setPseudo(%22User2%22);%0A       b.setProfilePicturePath(%22%22);
+DataSample()%7B%0A      
 %0A   

Update DataSample.java