--- Aapo Laakkonen <[EMAIL PROTECTED]> wrote: > One more question: > > > So you have private constructors in them? > > If yes, then how do you instantiate your objects? > Like this? > > Constructor ctor = > UserImpl.class.getDeclaredConstructor(new Class[0]); > ctor.setAccessible(true); > UserImpl user = (UserImpl) ctor.newInstance(new > Object[0]);
Not at all. I have my constructors package visible, and my dao lives in the same package. Well, DAO itself is also not visible and instantiated by my special manager class which handles all the initialization ( and session management ) of hibernate system. regards, ===== ----[ Konstantin Pribluda ( ko5tik ) ]---------------- Zu Verstärkung meines Teams suche ich ab Sofort einen Softwareentwickler[In] für die Festanstellung. Arbeitsort: Mainz Skills: Programieren, Kentnisse in OpenSource-Bereich ----[ http://www.pribluda.de ]------------------------ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel