@Transactional
	public void updateNote(Integer noteId, String text) {
		session = sessionFactory.openSession();
		session.beginTransaction();
		Note note = (Note) session.get(Note.class, noteId);
		note.setText(text);
		note.setChanged(true);
		session.getTransaction().commit();
		session.close();
	}