Images now fetch their uploader lazily

This commit is contained in:
neviyn 2021-04-30 16:36:27 +01:00
parent 52bf9b1898
commit cb729f6be4

View File

@ -44,7 +44,7 @@ open class Role(
open class Image( open class Image(
@Column(unique = true) @Column(unique = true)
open var filename: String = "", open var filename: String = "",
@ManyToOne @ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "uploader") @JoinColumn(name = "uploader")
open var uploader: User = User(), open var uploader: User = User(),
@ManyToMany @ManyToMany