Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-382
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-382
Summary: Make Hibernate Friendlier for use of Proxies and Enhanced Classes
Type: New Feature
Status: Unassigned
Priority: Major
Project: Hibernate2
Versions:
2.1 final
Assignee:
Reporter: James House
Created: Mon, 6 Oct 2003 4:29 PM
Updated: Mon, 6 Oct 2003 4:29 PM
Description:
Hibernate could become friendly to applications that make use of proxies and byte-code enchanced classes in their object models.
To do so, only a couple simple new features are needed:
1) Add a construct (new method) to Configuration that lets you relate one class's mappings to another (i.e. tell Hibernate that: if you ever have to persist this class, act as if it is this other class that you already have mappings for). - This will serve to tell Hibernate that the enhanced class (who's class name is only known at run-time) should be persisted using the mappings of the original class. Note that in this case, the enhanced class only has changed behavior - no new properties.
2) Add a construct to relate a "factory" to a class's mappings, from which Hibernate should produce new instances of that class during load() operations. - This will server to tell Hibernate that it should create a new instance of a class (during load()) using the given factory, rather than using the default constructor. This way Hibernate can produce enhanced or proxied or even just sub-classes of objects without being aware of it. This feature would also be useful to other people, who simply need the object to be created a special way.
I'd be happy to donate this work if it would be accepted - just let me know (either as a comment to this issue, or via e-mail) that it will be worth my time to do the work.
james
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|