diff --git a/.project b/.project
index f87ca5c..45a395e 100644
--- a/.project
+++ b/.project
@@ -15,15 +15,9 @@
-
- org.hibernate.eclipse.console.hibernateBuilder
-
-
-
org.eclipse.jdt.core.javanature
org.eclipse.m2e.core.maven2Nature
- org.hibernate.eclipse.console.hibernateNature
diff --git a/.settings/org.eclipse.jdt.ui.prefs b/.settings/org.eclipse.jdt.ui.prefs
index 20da6a0..269827f 100644
--- a/.settings/org.eclipse.jdt.ui.prefs
+++ b/.settings/org.eclipse.jdt.ui.prefs
@@ -1,3 +1,3 @@
eclipse.preferences.version=1
org.eclipse.jdt.ui.javadoc=true
-org.eclipse.jdt.ui.text.custom_code_templates=/**\n * @return the ${bare_field_name}\n * @since Envoy Server Standalone v0.1-alpha\n *//**\n * @param ${param} the ${bare_field_name} to set\n * @since Envoy Server Standalone v0.1-alpha\n *//**\n * ${tags}\n * @since Envoy Server Standalone v0.1-alpha\n *//**\n * Project\: <strong>${project_name}</strong><br>\n * File\: <strong>${file_name}</strong><br>\n * Created\: <strong>${date}</strong><br>\n * \n * @author Leon Hofmeister\n * @since Envoy Server Standalone v0.1-alpha\n *//**\n * ${tags}\n * @since Envoy Server Standalone v0.1-alpha\n *//**\n * @author ${user}\n *\n * ${tags}\n * @since Envoy Server Standalone v0.1-alpha\n *//**\n * ${tags}\n * ${see_to_target}\n * @since Envoy Server Standalone v0.1-alpha\n */${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}\n\n\n\n// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();// ${todo} Auto-generated method stub\n${body_statement}\n// ${todo} Auto-generated constructor stub\n${body_statement}\nreturn ${field};${field} \= ${param};
+org.eclipse.jdt.ui.text.custom_code_templates=/**\r\n * @return the ${bare_field_name}\r\n * @since Envoy Server Standalone v0.1-alpha\r\n *//**\r\n * @param ${param} the ${bare_field_name} to set\r\n * @since Envoy Server Standalone v0.1-alpha\r\n *//**\r\n * Creates an instance of @link{${enclosing_type}}.\r\n *\r\n * ${tags}\r\n * @since Envoy Server Standalone v0.1-alpha\r\n *//**\r\n * Project\: <strong>${project_name}</strong><br>\r\n * File\: <strong>${file_name}</strong><br>\r\n * Created\: <strong>${date}</strong><br>\r\n * \r\n * @author ${user}\r\n * @since Envoy Server Standalone v0.1-alpha\r\n *//**\r\n * ${tags}\r\n * @since Envoy Server Standalone v0.1-alpha\r\n *//**\r\n * @author ${user}\r\n *\r\n * ${tags}\r\n * @since Envoy Server Standalone v0.1-alpha\r\n *//**\r\n * ${tags}\r\n * ${see_to_target}\r\n * @since Envoy Server Standalone v0.1-alpha\r\n */${filecomment}\r\n${package_declaration}\r\n\r\n${typecomment}\r\n${type_declaration}\r\n\r\n\r\n\r\n${exception_var}.printStackTrace();${body_statement}\r\n${body_statement}\r\nreturn ${field};${field} \= ${param};
diff --git a/.settings/org.hibernate.eclipse.console.prefs b/.settings/org.hibernate.eclipse.console.prefs
deleted file mode 100644
index a6ccf3c..0000000
--- a/.settings/org.hibernate.eclipse.console.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-default.configuration=envoy-server-standalone
-eclipse.preferences.version=1
-hibernate3.enabled=true
diff --git a/src/main/java/envoy/server/database/PersistenceManager.java b/src/main/java/envoy/server/database/PersistenceManager.java
index 6d2db51..e7c2dc8 100644
--- a/src/main/java/envoy/server/database/PersistenceManager.java
+++ b/src/main/java/envoy/server/database/PersistenceManager.java
@@ -22,11 +22,6 @@ public class PersistenceManager {
private EntityManager entityManager = Persistence.createEntityManagerFactory("envoy").createEntityManager();
- /**
- * @since Envoy Server Standalone v0.1-alpha
- */
- public PersistenceManager() {}
-
/**
* Adds a {@link User} to the database.
*
@@ -76,7 +71,8 @@ public class PersistenceManager {
* @since Envoy Server Standalone v0.1-alpha
*/
@SuppressWarnings("unchecked")
- public List getUnreadMessages(User user) {// TODO may need to be changed to clientId
+ public List getUnreadMessages(User user) {
+ // TODO may need to be changed to clientId
return entityManager.createNamedQuery("getUnreadMessages").setParameter("recipient", user).getResultList();
}
}
\ No newline at end of file