Spring Data Jpa создание пользовательских запросов

При создании пользовательского запроса и использовании его в последующем в других методах, получаю ошибку создания бина, не понимаю, что не так Есть CommentEntity

@Entity
@Table(name = "comment_table")
@Data
public class CommentEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column
    @Type(type="date")
    private Date createdAt;

    @Column
    private String message;

    @Column
    private boolean approved;

    @Column
    private Integer rate;

    @ManyToOne
    @JoinColumn(name = "author_id")
    private UserEntity author_id;

    @ManyToOne
    @JoinColumn(name = "post_id")
    private GameObjectEntity post_id;

Запрос находится в CommentEntityRepository

@Query("select f from CommentEntity f where f.post_id = :gameObjectEntity")
ArrayList<CommentEntity> getAllByPost_id(@Param("gameObjectEntity") GameObjectEntity gameObjectEntity);

Ответы (0 шт):