core 3.2.0.cr2, ann 3.2.0.cr2
Hi,
I'm using Hibernate annotations on an entity's method that is declared in an interface (see below). When starting hibernate or using hibernate tools to generate my ddl I get the following warning:
Code:
2006-05-16 16:05:02,293 WARN [org.hibernate.validator.ClassValidator] - <Original type of property public abstract java.util.Set org.mydomain.acl.AccessControllable.getAclEntries() is unbound and has been approximated.>
Is this something I can take care of or will Hibernate work properly besides this warning?
Regards,
john
Interface
Code:
public interface AccessControllable <ACLType extends AclEntryBase> {
public Set<ACLType> getAclEntries();
}
Implementing class
Code:
public abstract class Customer implements AccessControllable<CustomerAcl> {
private Set<CustomerAcl> aclEntries = new HashSet<CustomerAcl>();
@Column(name = "aclEntries")
@OneToMany(targetEntity = CustomerAcl.class, mappedBy = "entity", fetch = FetchType.LAZY)
@Type(type="AccessControlList")
public Set<CustomerAcl> getAclEntries() {
return this.aclEntries;
}
...
}