Quote:
its not private in cvs.
Uh, yah. That's the problem. :-)
There's no visibility modifier on the "set" object. It currently looks like this:
Code:
public class PersistentSet extends AbstractPersistentCollection implements java.util.Set {
java.util.Set set;
Meaning that it gets "package" visibility by default.
And since "package" visibility yields a property that subclasses can't access we have the problem cited above.
Changing the visibility *to* "private" would fix this. "private" visibility does allow subclasses to have direct access. Like so:
Code:
public class PersistentSet extends AbstractPersistentCollection implements java.util.Set {
private java.util.Set set;
- Gary
P.S. Strictly speaking, subclasses that are located within the same package as the superclass can access objects with "package" visibility. But that's not really much help here since (I assume) most people are going to be creating subclasses that sit within their own package structure, not Hibernate's.[/code]