Fix some remaining issues from the Spring migration #20
@ -1,6 +1,7 @@
|
|||||||
package se.su.dsv.scipro.notes;
|
package se.su.dsv.scipro.notes;
|
||||||
|
|
||||||
import com.querydsl.core.types.dsl.BooleanExpression;
|
import com.querydsl.core.types.dsl.BooleanExpression;
|
||||||
|
import jakarta.transaction.Transactional;
|
||||||
import se.su.dsv.scipro.system.AbstractServiceImpl;
|
import se.su.dsv.scipro.system.AbstractServiceImpl;
|
||||||
import se.su.dsv.scipro.system.User;
|
import se.su.dsv.scipro.system.User;
|
||||||
|
|
||||||
@ -20,6 +21,7 @@ public class NoteServiceImpl extends AbstractServiceImpl<Note, Long> implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public Note getNote(User user) {
|
public Note getNote(User user) {
|
||||||
Note note = findOne(hasUser(user));
|
Note note = findOne(hasUser(user));
|
||||||
if (note == null){
|
if (note == null){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user