diff --git a/src/main/kotlin/uk/co/neviyn/booru/Entity.kt b/src/main/kotlin/uk/co/neviyn/booru/Entity.kt index 39a69e9..56fec1e 100644 --- a/src/main/kotlin/uk/co/neviyn/booru/Entity.kt +++ b/src/main/kotlin/uk/co/neviyn/booru/Entity.kt @@ -44,7 +44,7 @@ open class Role( open class Image( @Column(unique = true) open var filename: String = "", - @ManyToOne + @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "uploader") open var uploader: User = User(), @ManyToMany