@Service(value="userNoteEntityManagement") public class UserNoteEntityManagement extends Object
Constructor and Description |
---|
UserNoteEntityManagement() |
Modifier and Type | Method and Description |
---|---|
UserNoteEntityTO |
findByUserIdNoteId(Long userId,
Long noteId)
Get the
UserNoteEntityTO by the id of the user and note |
void |
updateUserNoteEntity(UserNoteEntityTO userNoteEntityTO)
Update the backend with the given
UserNoteEntityTO . |
@Transactional(propagation=REQUIRED, readOnly=true) public UserNoteEntityTO findByUserIdNoteId(Long userId, Long noteId)
UserNoteEntityTO
by the id of the user and noteuserId
- the id for the user. cannot be null.noteId
- the id of the note. cannot be null.@Transactional(propagation=REQUIRED) public void updateUserNoteEntity(UserNoteEntityTO userNoteEntityTO) throws NotFoundException
UserNoteEntityTO
. What exactly is updated is
defined by the given TO.userNoteEntityTO
- used for updatingNotFoundException
- in case the note or user associated with the userNoteEntityTO is not found (e.g.
deleted)Copyright © 2019 Communote team. All rights reserved.