Skip to content

Delete Comment is not working #1

@ghost

Description

While running "this.CommentRepo.deleteComment()" , Hibernate runs the below sql query but no delete query is run..is it a hibernate issue ?

Hibernate: select comments0_.post_post_id as post_pos3_1_0_, comments0_.id as id1_1_0_, comments0_.id as id1_1_1_, comments0_.content as content2_1_1_, comments0_.post_post_id as post_pos3_1_1_ from comment comments0_ where comments0_.post_post_id=?

Hibernate: select post0_.post_id as post_id1_2_0_, post0_.added_date as added_da2_2_0_, post0_.category_id as category6_2_0_, post0_.content as content3_2_0_, post0_.image_name as image_na4_2_0_, post0_.title as title5_2_0_, post0_.user_id as user_id7_2_0_, category1_.category_id as category1_0_1_, category1_.description as descript2_0_1_, category1_.title as title3_0_1_, comments2_.post_post_id as post_pos3_1_2_, comments2_.id as id1_1_2_, comments2_.id as id1_1_3_, comments2_.content as content2_1_3_, comments2_.post_post_id as post_pos3_1_3_, user3_.user_id as user_id1_3_4_, user3_.password as password2_3_4_, user3_.about as about3_3_4_, user3_.email as email4_3_4_, user3_.name as name5_3_4_ from post post0_ left outer join categories category1_ on post0_.category_id=category1_.category_id left outer join comment comments2_ on post0_.post_id=comments2_.post_post_id left outer join users user3_ on post0_.user_id=user3_.user_id where post0_.post_id=?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions