diff --git a/PositioningServer/.idea/workspace.xml b/PositioningServer/.idea/workspace.xml
index cce6fcd..56df425 100644
--- a/PositioningServer/.idea/workspace.xml
+++ b/PositioningServer/.idea/workspace.xml
@@ -18,117 +18,21 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -192,10 +96,10 @@
-
+
-
-
+
+
@@ -237,20 +141,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -402,24 +292,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
@@ -663,10 +579,9 @@
-
+
-
@@ -680,14 +595,14 @@
-
+
-
+
@@ -695,6 +610,7 @@
+
@@ -1020,28 +936,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1056,16 +951,10 @@
-
-
-
-
-
-
-
+
-
+
@@ -1075,55 +964,77 @@
-
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
-
+
+
-
+
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+
@@ -1133,7 +1044,7 @@
-
+
@@ -1141,20 +1052,30 @@
-
+
-
-
+
+
-
+
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/PositioningServer/PositioningServer.iml b/PositioningServer/PositioningServer.iml
index a35874b..924ebe1 100644
--- a/PositioningServer/PositioningServer.iml
+++ b/PositioningServer/PositioningServer.iml
@@ -1,6 +1,6 @@
-
+
diff --git a/PositioningServer/Server_Servlets/Server_Servlets.iml b/PositioningServer/Server_Servlets/Server_Servlets.iml
index 9ca1ec2..f599562 100644
--- a/PositioningServer/Server_Servlets/Server_Servlets.iml
+++ b/PositioningServer/Server_Servlets/Server_Servlets.iml
@@ -1,6 +1,6 @@
-
+
diff --git a/project/.idea/compiler.xml b/project/.idea/compiler.xml
new file mode 100644
index 0000000..70ac13f
--- /dev/null
+++ b/project/.idea/compiler.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__antlr_antlr_2_7_6.xml b/project/.idea/libraries/Maven__antlr_antlr_2_7_6.xml
new file mode 100644
index 0000000..c8d18a7
--- /dev/null
+++ b/project/.idea/libraries/Maven__antlr_antlr_2_7_6.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__commons_collections_commons_collections_3_1.xml b/project/.idea/libraries/Maven__commons_collections_commons_collections_3_1.xml
new file mode 100644
index 0000000..01dd005
--- /dev/null
+++ b/project/.idea/libraries/Maven__commons_collections_commons_collections_3_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml b/project/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml
new file mode 100644
index 0000000..14681ee
--- /dev/null
+++ b/project/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__javassist_javassist_3_9_0_GA.xml b/project/.idea/libraries/Maven__javassist_javassist_3_9_0_GA.xml
new file mode 100644
index 0000000..8d8be19
--- /dev/null
+++ b/project/.idea/libraries/Maven__javassist_javassist_3_9_0_GA.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__javax_javaee_web_api_6_0.xml b/project/.idea/libraries/Maven__javax_javaee_web_api_6_0.xml
new file mode 100644
index 0000000..6f532e6
--- /dev/null
+++ b/project/.idea/libraries/Maven__javax_javaee_web_api_6_0.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__javax_transaction_jta_1_1.xml b/project/.idea/libraries/Maven__javax_transaction_jta_1_1.xml
new file mode 100644
index 0000000..3047243
--- /dev/null
+++ b/project/.idea/libraries/Maven__javax_transaction_jta_1_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__log4j_log4j_1_2_14.xml b/project/.idea/libraries/Maven__log4j_log4j_1_2_14.xml
new file mode 100644
index 0000000..2825a67
--- /dev/null
+++ b/project/.idea/libraries/Maven__log4j_log4j_1_2_14.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__org_hibernate_hibernate_annotations_3_5_6_Final.xml b/project/.idea/libraries/Maven__org_hibernate_hibernate_annotations_3_5_6_Final.xml
new file mode 100644
index 0000000..d26bdad
--- /dev/null
+++ b/project/.idea/libraries/Maven__org_hibernate_hibernate_annotations_3_5_6_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__org_hibernate_hibernate_commons_annotations_3_2_0_Final.xml b/project/.idea/libraries/Maven__org_hibernate_hibernate_commons_annotations_3_2_0_Final.xml
new file mode 100644
index 0000000..dbb890e
--- /dev/null
+++ b/project/.idea/libraries/Maven__org_hibernate_hibernate_commons_annotations_3_2_0_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__org_hibernate_hibernate_core_3_5_6_Final.xml b/project/.idea/libraries/Maven__org_hibernate_hibernate_core_3_5_6_Final.xml
new file mode 100644
index 0000000..2083af8
--- /dev/null
+++ b/project/.idea/libraries/Maven__org_hibernate_hibernate_core_3_5_6_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_0_api_1_0_0_Final.xml b/project/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_0_api_1_0_0_Final.xml
new file mode 100644
index 0000000..6b42b8a
--- /dev/null
+++ b/project/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_0_api_1_0_0_Final.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__org_postgresql_postgresql_9_4_1212.xml b/project/.idea/libraries/Maven__org_postgresql_postgresql_9_4_1212.xml
new file mode 100644
index 0000000..ad56bbd
--- /dev/null
+++ b/project/.idea/libraries/Maven__org_postgresql_postgresql_9_4_1212.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__org_slf4j_slf4j_api_1_5_8.xml b/project/.idea/libraries/Maven__org_slf4j_slf4j_api_1_5_8.xml
new file mode 100644
index 0000000..0ea470a
--- /dev/null
+++ b/project/.idea/libraries/Maven__org_slf4j_slf4j_api_1_5_8.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__org_slf4j_slf4j_log4j12_1_5_8.xml b/project/.idea/libraries/Maven__org_slf4j_slf4j_log4j12_1_5_8.xml
new file mode 100644
index 0000000..f4725a3
--- /dev/null
+++ b/project/.idea/libraries/Maven__org_slf4j_slf4j_log4j12_1_5_8.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/libraries/Maven__xml_apis_xml_apis_1_0_b2.xml b/project/.idea/libraries/Maven__xml_apis_xml_apis_1_0_b2.xml
new file mode 100644
index 0000000..c36e717
--- /dev/null
+++ b/project/.idea/libraries/Maven__xml_apis_xml_apis_1_0_b2.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/misc.xml b/project/.idea/misc.xml
new file mode 100644
index 0000000..e8942bd
--- /dev/null
+++ b/project/.idea/misc.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/modules.xml b/project/.idea/modules.xml
new file mode 100644
index 0000000..30a22c7
--- /dev/null
+++ b/project/.idea/modules.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/.idea/workspace.xml b/project/.idea/workspace.xml
new file mode 100644
index 0000000..7d16e52
--- /dev/null
+++ b/project/.idea/workspace.xml
@@ -0,0 +1,882 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/pom.xml b/project/pom.xml
new file mode 100644
index 0000000..0929d1e
--- /dev/null
+++ b/project/pom.xml
@@ -0,0 +1,66 @@
+
+
+ 4.0.0
+
+ com.utbm.lo53
+ project
+ pom
+ 1.0-SNAPSHOT
+
+ server_core
+ server_servlet
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ 1.8
+ 1.8
+
+
+
+
+
+
+
+ org.postgresql
+ postgresql
+ 9.4.1212
+
+
+
+
+ org.hibernate
+ hibernate-core
+ 3.5.6-Final
+
+
+
+
+ org.hibernate
+ hibernate-annotations
+ 3.5.6-Final
+
+
+
+
+ org.slf4j
+ slf4j-log4j12
+ 1.5.8
+ runtime
+
+
+
+ javassist
+ javassist
+ 3.9.0.GA
+ runtime
+
+
+
+
\ No newline at end of file
diff --git a/project/project.iml b/project/project.iml
new file mode 100644
index 0000000..924ebe1
--- /dev/null
+++ b/project/project.iml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/server_core/pom.xml b/project/server_core/pom.xml
new file mode 100644
index 0000000..8599beb
--- /dev/null
+++ b/project/server_core/pom.xml
@@ -0,0 +1,16 @@
+
+
+
+ project
+ com.utbm.lo53
+ 1.0-SNAPSHOT
+
+ jar
+ 4.0.0
+
+ server_core
+
+
+
\ No newline at end of file
diff --git a/project/server_core/server_core.iml b/project/server_core/server_core.iml
new file mode 100644
index 0000000..924ebe1
--- /dev/null
+++ b/project/server_core/server_core.iml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/project/server_core/src/main/java/dao/DebianDao.java b/project/server_core/src/main/java/dao/DebianDao.java
new file mode 100644
index 0000000..079842f
--- /dev/null
+++ b/project/server_core/src/main/java/dao/DebianDao.java
@@ -0,0 +1,9 @@
+package com.utbm.lo53.dao;
+
+/**
+ * Created by Guillaume on 09/05/2017.
+ */
+public class DebianDao {
+
+ public String getMacAddr(String ipAddr){return null;}
+}
diff --git a/project/server_core/src/main/java/dao/HibernateDao.java b/project/server_core/src/main/java/dao/HibernateDao.java
new file mode 100644
index 0000000..a4913d1
--- /dev/null
+++ b/project/server_core/src/main/java/dao/HibernateDao.java
@@ -0,0 +1,175 @@
+package dao;
+
+import repository.*;
+import utils.HibernateUtil;
+import org.hibernate.HibernateException;
+import org.hibernate.Query;
+import org.hibernate.Session;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Created by Guillaume on 09/05/2017.
+ */
+public class HibernateDao {
+
+ public HibernateDao () {
+ }
+
+ private TransactionCallBack execTransactionProcess(ITransactionProcess itp) {
+ Session session = HibernateUtil.getSessionFactory().openSession();
+ TransactionCallBack reply = new TransactionCallBack();
+ try {
+ session.beginTransaction();
+ reply = itp.exec(session);
+ session.getTransaction().commit();
+ reply.setStatus(true);
+ return reply;
+ } catch (HibernateException he) {
+ he.printStackTrace();
+ if (session.getTransaction() != null) {
+ try {
+ session.getTransaction().rollback();
+ } catch (HibernateException he2) {
+ he2.printStackTrace();
+ }
+ }
+ } finally {
+ if (session != null) {
+ try {
+ session.close();
+ } catch (HibernateException ex) {
+ ex.printStackTrace();
+ }
+ }
+ }
+ return reply;
+ }
+ private List internal_getData(Class clazz){
+ TransactionCallBack callBack = execTransactionProcess((session)->{
+ TransactionCallBack reply = new TransactionCallBack();
+ Query query = session.createQuery("from "+clazz.getSimpleName());
+ List