Fix crash while trying to show a user's note
Caused by missing @Transactional
This commit is contained in:
parent
3ea6611e74
commit
4f3c77ffe3
@ -1,6 +1,7 @@
|
||||
package se.su.dsv.scipro.notes;
|
||||
|
||||
import com.querydsl.core.types.dsl.BooleanExpression;
|
||||
import jakarta.transaction.Transactional;
|
||||
import se.su.dsv.scipro.system.AbstractServiceImpl;
|
||||
import se.su.dsv.scipro.system.User;
|
||||
|
||||
@ -20,6 +21,7 @@ public class NoteServiceImpl extends AbstractServiceImpl<Note, Long> implements
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public Note getNote(User user) {
|
||||
Note note = findOne(hasUser(user));
|
||||
if (note == null){
|
||||
|
Loading…
x
Reference in New Issue
Block a user