use transaction for complex model

This commit is contained in:
Daniel Gultsch 2023-03-05 15:15:57 +01:00
parent f1fbf15fea
commit e4fb793769
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -228,6 +228,7 @@ public abstract class DiscoDao {
entity.getClass().getName())); entity.getClass().getName()));
} }
@Transaction
@Query( @Query(
"SELECT disco_item.discoId,address FROM disco_item JOIN disco_feature ON" "SELECT disco_item.discoId,address FROM disco_item JOIN disco_feature ON"
+ " disco_item.discoId=disco_feature.discoId WHERE feature=:feature AND" + " disco_item.discoId=disco_feature.discoId WHERE feature=:feature AND"