Created
July 19, 2020 10:49
-
-
Save hkakutalua/9b06fdc8a3e476f6cf51b0631376a4e0 to your computer and use it in GitHub Desktop.
Changed fetch to FetchType.EAGER
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
@Table(name = "carts") | |
class Cart : DomainEntity() { | |
@OneToMany(fetch = FetchType.EAGER, cascade = [CascadeType.ALL], orphanRemoval = true) | |
private val _items = mutableListOf<ProductItem>() | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment