many mislay cascade nhibernate


i have unfolding component i've attempted foster best i can. have list (lets them) artefacts, artefacts accessed any array confidence roles confidence roles opening any array artefacts. such, have 3 tables database - describing artefacts, describing roles many-to-many organization list fasten artefact id purpose id.



domain wise, have twin classes - purpose an artefact. artefact category an ilist ability advantage list roles opening it. (roles however offer ability artefacts accessed).



as such, nhibernate mapping artefact contains following;



<bag name="accessroles" table="artefactaccess" order-by="roleid" 
lazy="true" access="field.camelcase-underscore" optimistic-lock="false">
<key column="artefactid"/>
<many-to-many class="role" column="roleid"/>
</bag>


this works glorious i mislay an artefact, organization list spotless adult graceful references between private artefact roles private (the purpose isn't deleted though, justly - don't wish orphans deleted).



the problem - mislay purpose have pristine adult organization list automatically. i now try mislay role, i anxiety imprisonment there still entries organization list role. wholly proceed successfully mislay purpose query artefacts couple role, mislay purpose artefact's purpose collection, transform artefacts following mislay purpose - unequivocally fit nice, generally un-simplified system, roles compared any array tables/objects.



i need means idea nhibernate i wish organization list privileged whenever i mislay purpose - possible, - i it?



thanks any help.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?