The problem about Hibernates private access to objects is the way it is implemented because it uses Reflection API. At first it's slower and therefore expensive. AspectJ often uses reflection, too. You will get into trouble, if you have a App-Server configured like supposed by the J2EE spec, which recommends to deny 'ReflectPermission'.
I ran into the same trouble and I am still searching for a better solution. So, did you find a solution?
The problem about Hibernates private access to objects is the way it is implemented because it uses Reflection API. At first it's slower and therefore expensive. AspectJ often uses reflection, too. You will get into trouble, if you have a App-Server configured like supposed by the J2EE spec, which recommends to deny 'ReflectPermission'.
I ran into the same trouble and I am still searching for a better solution. So, did you find a solution?
Thank you, Timo