Ah. Interesting. If I wouldn't have just checked the code I would have
thought a private noarg constructor was allowed for components also - but
you are quite correct; ComponentType uses Class.newInstance() to instantiate
components. You wanna make a patch, John? (Probably refactor the code for
this out of the persister package and onto ReflectHelper...)
peace
Gavin
----- Original Message -----
From: "Urberg, John" <ju...@ve...>
To: <hib...@li...>
Sent: Friday, November 08, 2002 7:07 AM
Subject: [Hibernate] Components without public no-arg constructor
> 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 constructor.
>
> Thanks,
> John
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: See the NEW Palm
> Tungsten T handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
> _______________________________________________
> hibernate-devel mailing list
> hib...@li...
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
|