Images now fetch their uploader lazily
This commit is contained in:
parent
52bf9b1898
commit
cb729f6be4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user