Feature Requests item #679510, was opened at 2003-02-04 01:11
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428711&aid=679510&group_id=40712

Category: None
Group: None
>Status: Closed
Priority: 5
Submitted By: Simon Stewart (shs96c)
Assigned to: Nobody/Anonymous (nobody)
Summary: Using factories to obtain class instances

Initial Comment:
ATM, Hibernate only supports persisting objects which
have a no argument constructor. It would be useful to
be able to specify a factory class that can also be
used to obtain an object of the correct type. Using
this approach, it would be possible to persist
interfaces, which currently need a concrete class
created for this purpose (rather than using dynamic
proxies)

Ideally, this factory class would not need a static
"newInstance" method, but could be passed in when the
hibernate factory is created, allowing for an inversion
of control.

----------------------------------------------------------------------

>Comment By: Gavin King (oneovthafew)
Date: 2003-02-04 10:37

Message:
Logged In: YES 
user_id=384580

This was already implemented in the HIbernate2 Interceptor. 
Check it out!

:)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428711&aid=679510&group_id=40712


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Reply via email to