1. Hibernate can access private fields and methods ? How come ? coderanch.comI need some clarification for the text in the documentation. Below is extracted from Hibernate Reference Documentation Version: 3.1.3 Section 1.2.1 : [Explaining about the id field of an object/class] we usually don't manipulate the identity of an object, hence the setter method should be private. Only Hibernate will assign identifiers when an object is saved. You can see that Hibernate ... |
2. Heuristic type deduction and private field access forum.hibernate.org |
3. Is this the correct rule:Private methods can't access fields forum.hibernate.orgI had a problem with the CGLIB proxies in which the proxies were being loaded, but somehow their values weren't being accessed correctly. I was able to work around the problem by forcing the proxies to be loaded eagerly (using outer-join=true in the parent), but that seemed unsatisfying. I persevered, and I think I now understand the answer. Would someone confirm ... |
4. Hibernate can access private fields and methods ? forum.hibernate.orgI need some clarification for the text in the documentation. Below is extracted from Hibernate Reference Documentation Version: 3.1.3 Section 1.2.1 : [Explaining about the id field of an object/class] we usually don't manipulate the identity of an object, hence the setter method should be private. Only Hibernate will assign identifiers when an object is saved. You can see that Hibernate ... |
5. private field overriden forum.hibernate.orgHi all, I'v in trouble to link together two hierarchies at the top level (security). i've successed for most cases but some still fail. I've a hierarcy of domain entities whose derived from a generic SecuredClass annotated with @MappedSuperclass (so not an entity). This SecuredClass has a one to many to an abstract entity SecurityClass. This abstract security class has the ... |