I notice we can now map classes that don't have public no-arg constructors.
Is it possible to extend that to components also?
Many of the components I use will be value objects and I'd like to make them
immutable (including composite ids). I could do this if Hibernate could use
a private no arg
Is Reflect helper used to load classes ?
It can be a problem on some app servers :
public static Class classForName(String name) throws ClassNotFoundException
{
try {
return Thread.currentThread().getContextClassLoader().loadClass(name);
}
catch (Exception e) {
return Class.forName(n
Hi,
I found this in archyve. It is bug in cglib, updated rc2 has fix for
"writeReplace", but it has bug
in "MyClass.class" implementation, it dublicates "findClass(String name)",
Class init hasbug too, it fails if argument count > 6 in method
"myMethod(int arg1,int arg2,int arg3,int arg4,int arg5,i
Firstly, the API *should* use Class objects to reduce the possibility of
runtime errors. I forget which project I saw recently that had used strings
and was now moving to using class objects. Internally, we *could* use
classnames, but that would be slower, right? Its much quicker to take an
identit
> But this doesn't handle things like SessionFactory.getClassMetadata,
> which takes a Class.
Just asking out of personal interest :)
why is everything in hibernate bound up onto Class objects, why not
fully-qualifed-names in
the form of strings instead ?
That would make it more flexible and res