Adjusted comment templates.

This commit is contained in:
Kai S. K. Engelbart 2020-01-04 16:50:05 +02:00
parent 38cfdb0dfd
commit c6d8230ae1
4 changed files with 3 additions and 16 deletions

View File

@ -15,15 +15,9 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.hibernate.eclipse.console.hibernateBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.hibernate.eclipse.console.hibernateNature</nature>
</natures>
</projectDescription>

File diff suppressed because one or more lines are too long

View File

@ -1,3 +0,0 @@
default.configuration=envoy-server-standalone
eclipse.preferences.version=1
hibernate3.enabled=true

View File

@ -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<Message> getUnreadMessages(User user) {// TODO may need to be changed to clientId
public List<Message> getUnreadMessages(User user) {
// TODO may need to be changed to clientId
return entityManager.createNamedQuery("getUnreadMessages").setParameter("recipient", user).getResultList();
}
}