Added newline at the end of PersistenceManager
This commit is contained in:
		| @@ -184,15 +184,15 @@ public class PersistenceManager { | ||||
| 	 * @since Envoy Server Standalone v0.1-alpha | ||||
| 	 */ | ||||
| 	public void addContact(long userId1, long userId2) { | ||||
| 		 | ||||
|  | ||||
| 		// Get users by ID | ||||
| 		User	u1	= getUserById(userId1); | ||||
| 		User	u2	= getUserById(userId2); | ||||
| 		 | ||||
|  | ||||
| 		// Add users to each others contact lists | ||||
| 		u1.getContacts().add(u2); | ||||
| 		u2.getContacts().add(u1); | ||||
| 		 | ||||
|  | ||||
| 		// Synchronize changes with the database | ||||
| 		transaction.begin(); | ||||
| 		entityManager.merge(u1); | ||||
| @@ -226,4 +226,4 @@ public class PersistenceManager { | ||||
| 		entityManager.remove(obj); | ||||
| 		transaction.commit(); | ||||
| 	} | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 delvh
					delvh