Adjusted comment templates.
This commit is contained in:
		
							
								
								
									
										6
									
								
								.project
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								.project
									
									
									
									
									
								
							@@ -15,15 +15,9 @@
 | 
				
			|||||||
			<arguments>
 | 
								<arguments>
 | 
				
			||||||
			</arguments>
 | 
								</arguments>
 | 
				
			||||||
		</buildCommand>
 | 
							</buildCommand>
 | 
				
			||||||
		<buildCommand>
 | 
					 | 
				
			||||||
			<name>org.hibernate.eclipse.console.hibernateBuilder</name>
 | 
					 | 
				
			||||||
			<arguments>
 | 
					 | 
				
			||||||
			</arguments>
 | 
					 | 
				
			||||||
		</buildCommand>
 | 
					 | 
				
			||||||
	</buildSpec>
 | 
						</buildSpec>
 | 
				
			||||||
	<natures>
 | 
						<natures>
 | 
				
			||||||
		<nature>org.eclipse.jdt.core.javanature</nature>
 | 
							<nature>org.eclipse.jdt.core.javanature</nature>
 | 
				
			||||||
		<nature>org.eclipse.m2e.core.maven2Nature</nature>
 | 
							<nature>org.eclipse.m2e.core.maven2Nature</nature>
 | 
				
			||||||
		<nature>org.hibernate.eclipse.console.hibernateNature</nature>
 | 
					 | 
				
			||||||
	</natures>
 | 
						</natures>
 | 
				
			||||||
</projectDescription>
 | 
					</projectDescription>
 | 
				
			||||||
 
 | 
				
			|||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -1,3 +0,0 @@
 | 
				
			|||||||
default.configuration=envoy-server-standalone
 | 
					 | 
				
			||||||
eclipse.preferences.version=1
 | 
					 | 
				
			||||||
hibernate3.enabled=true
 | 
					 | 
				
			||||||
@@ -22,11 +22,6 @@ public class PersistenceManager {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	private EntityManager entityManager = Persistence.createEntityManagerFactory("envoy").createEntityManager();
 | 
						private EntityManager entityManager = Persistence.createEntityManagerFactory("envoy").createEntityManager();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
					 | 
				
			||||||
	 * @since Envoy Server Standalone v0.1-alpha
 | 
					 | 
				
			||||||
	 */
 | 
					 | 
				
			||||||
	public PersistenceManager() {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Adds a {@link User} to the database.
 | 
						 * Adds a {@link User} to the database.
 | 
				
			||||||
	 *
 | 
						 *
 | 
				
			||||||
@@ -76,7 +71,8 @@ public class PersistenceManager {
 | 
				
			|||||||
	 * @since Envoy Server Standalone v0.1-alpha
 | 
						 * @since Envoy Server Standalone v0.1-alpha
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	@SuppressWarnings("unchecked")
 | 
						@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();
 | 
							return entityManager.createNamedQuery("getUnreadMessages").setParameter("recipient", user).getResultList();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user