Thx for your suggestions. Encouraged by your suggestion 3 I have debugged my overridden
equals method once again (ignoring the tracing output). What I found out:
other.name is null where it shouldn't be null. Changing this line to other.getName()
fixed the problem!
| public boolean equals(Object obj) {
| if (this == obj)
| return true;
| if (obj == null)
| return false;
| if (!(obj instanceof OrgUnit))
| return false;
| final OrgUnit other = (OrgUnit) obj;
| if (name == null) {
| if (other.name != null)
| return false;
| } else if (!name.equals(other.name))
| return false;
| return true;
| }
|
"petemuir" wrote :
| 1) Association fetching in Hibernate is lazy by default AFAIK
|
Are you sure? This would make things strange anymore.
But now I know that this is an Hibernate issue - not a Seam issue.
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983274#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...