Issue Type: Improvement Improvement
Affects Versions: 4.1.9
Assignee: Unassigned
Components: core
Created: 28/Jan/13 5:58 PM
Description:

This would be nice to use Interceptor instantiate functionnality before invoking the ComponentTuplizer toolchain (currently in ComponentMetamodel).

The Interceptor is an easy workaround to allow creating objects that don't have a default constructor (eg. to persist interfaces where instances only came from a factory) using entity names. Indeed, a reference to an object factory can be supplied (at Configuration step) to the Interceptor instance to do the job (-> currently tested and working great).

For Components, there's currently no such possibility but it seems technically possible looking at comments in ComponentMetamodel (commented prototype to inject a SessionFactoryImplementor) and associated open JIRA issues. Moreover, there's no tweak that could be applied to replace this functionnality since Tuplizers have fixed constructors and ComponentTuplizerFactory insctance creation is hardcoded in ComponentMetamodel.

Project: Hibernate ORM
Priority: Major Major
Reporter: Nicolas DUFAILLY
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira