many2many inverse ----------------- Key: HIB-173 URL: http://jira.andromda.org/browse/HIB-173 Project: Hibernate Cartridge Type: Improvement
Versions: 3.1 Reporter: Darius Schier Assigned to: Carlos Cuenca Hi there, until now many2many associations added the inverse flag at that side which's side was lexically longer. By a minor change within hibernate's association end locig implementation, the behaviour could be more deterministic: protected boolean handleIsHibernateInverse() { // inverse can only be true if the relation is bidirectional boolean inverse = this.isNavigable() && this.getOtherEnd().isNavigable(); if (inverse) { inverse = this.isMany2One(); if (this.isMany2Many() && !inverse) { inverse = isAggregation() || isComposition(); } } return inverse; } Setting the values at the "diamond's" side should be enough (which could be a matter of discussion of course). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642