This file contains 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
ERROR [main]: Hypersistence Optimizer - CRITICAL - EagerFetchingEvent - | |
The [post] attribute in the [io.hypersistence.optimizer.hibernate.mapping.association.fetching.eager.PostComment] entity uses eager fetching. | |
Consider using a lazy fetching which, not only that is more efficient, but it is way more flexible when it comes to fetching data. | |
For more info about this event, check out this User Guide link - https://vladmihalcea.com/hypersistence-optimizer/docs/user-guide/#EagerFetchingEvent |
This file contains 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(name = "PostComment") | |
@Table(name = "post_comment") | |
public class PostComment { | |
@Id | |
private Long id; | |
@ManyToOne | |
private Post post; |
This file contains 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
vladmihalcea |