Hi all,
i am having a problem with a many-to-many (cascade="none") relationship.
since the information in the 'bridge' table wont be set when the object is updated (since the cascade=none). i wanted to write my own query. but i am getting a mapping error. i probebly have to write the tablename somewhere, but what i have tryed faild.
Code:
select_query = "insert into functiontype_compententionlevels_bridge CompetentionLevelId, FunctionTypeId values("+competentionLevels.get(i)+"," + functionTypeId +")";
query = session.createQuery(select_query);
if you have an other solution for my many-to-many problem, i would like to hear them too. But i am more interested in writing my own query..
thanks...