Brett Meyer commented on New Feature HHH-7527

I'm starting to work with the activator and class loaders. Here's several questions that have come up, so far. Any input is appreciated!

1.) Should this really be revolving around hibernate-entitymanager? Theoretically, a user should be able to start only the hibernate-core bundle, programmatically create a Configuration, and use pure Hibernate. The environment could have the SessionFactory in one bundle with all Entities in another bundle. Therefore, should we put everything in core instead? Or, split up duties (ex: entitymanager scans for persistence contexts while core scans for almost everything else)?

2.) Since a user should be able to have entities/mappings in a separate bundle, does this imply that our OSGi activator must manage class loaders for every bundle?

3.) If #2 is "yes", are there performance considerations? Some of the OSGi environments I've been involved with in the past were huge. The OSGi class loader would either need to always iterate over all bundles to find a class/resource, or maintain its own Map. Or, am I over-thinking this?

4.) Class & package name collisions? It can and does happen (bundles A & B depend on different versions of C, Entities with the same package and classname, etc.). How should we handle them?

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