Оптимизировано получение пакетов

This commit is contained in:
sshkurov
2022-01-31 21:52:11 +03:00
parent 3d06b25d7a
commit f5dcdf12ab
4 changed files with 21 additions and 14 deletions

View File

@@ -36,7 +36,7 @@ public class Packet {
@Transient
private int ttl;
@ManyToOne(optional = false)
@ManyToOne(fetch = FetchType.LAZY, optional = false)
@JoinColumn(name = "stream_id", nullable = false)
private Stream stream;