satheesans wrote:
update M_SEARCH_CRITERIA set SEARCH_PROFILE_SEQNO=null where SEARCH_PROFILE_SEQNO=? and SEARCH_PROFILE_SEQNO=?
I see SEARCH_PROFILE_SEQNO=? twice in the sql. Is it this expected?
satheesans wrote:
Search_Criteria_Association
SEARCH_PROFILE_SEQNO - Number, (PK)
SELECT_CRITERIA - varchar (PK)
SELECT_VALUE- varchar
Is SearchCriteriaAssociation a join table of SearchProfile and SearchCriteria? If so, why are you using a link table for manytoone association?
And I think the SQL error is caused coz of setting null to a non-null column. Most probably the Search_Criteria_Association.SEARCH_PROFILE_SEQNO which is part of PK of that table.