Hi Gonzalo Díaz,
Thank you for your wonderful support.
But
i need further help,
I have tried like,
Code:
@OneToMany(mappedBy="threadId")
@Where(clause="reply_id not in (select thread_id from abuse where status='ABUSE')")
but it gives ORA 00904 error for field status.
I have tried like,
Code:
@Where(clause="select * from post where reply_id not in (select thread_id from abuse where status='ABUSE')")
but it give ORA 00936 error.
Note: I need to do some more processes later thats why i kept separate table for abuse. and abuse table has some more columns too
Can you please correct me.
And, I have searched for the Where clause in net. But i cant get any help or material about the @Where clause
Can you give any link to learn more about hibernate clauses
Thank you.
by,
Alex