Skip to content

Instantly share code, notes, and snippets.

View vladmihalcea's full-sized avatar
😎
Helping you get the most out of your data access layer

Vlad Mihalcea vladmihalcea

😎
Helping you get the most out of your data access layer
View GitHub Profile
@vladmihalcea
vladmihalcea / HypersistenceOptimizerFetchTypeEagerLogEvent.txt
Last active July 8, 2019 16:22
HypersistenceOptimizerFetchTypeEagerLogEvent.txt
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
@vladmihalcea
vladmihalcea / HypersistenceOptimizerFetchTypeEagerEntity.java
Last active January 6, 2022 10:51
HypersistenceOptimizerFetchTypeEagerEntity
@Entity(name = "PostComment")
@Table(name = "post_comment")
public class PostComment {
@Id
private Long id;
@ManyToOne
private Post post;
vladmihalcea