Freeman Fang edited a comment on New Feature HHH-7527

Hi Brett,

I run your ContainerManaged example with latest released hibernate 4.2.0.CR2, it works like a charm.

Several feedback so far
1. need add extra Import-Package like
org.hibernate.proxy,
javassist.util.proxy,
to ContainerManaged example bundle
to remove exceptions in log.

2. currently hibernate-core/hibernate-entitymanage/hibernate-osgi bundles doesn't specify Export-Package version, should be great to add Export-Package version as well.

3. the most important issue I run into is that if I add

<provider>org.hibernate.ejb.HibernatePersistence</provider>

to ContainerManaged example persistence.xml, then this example bundle can't get started correctly, the related log is

12:01:34,845 | WARN  | 2.0.CR2-thread-1 | container                        | 256 - org.apache.aries.jpa.container - 1.0.0 | There are no suitable providers for the provider class name org.hibernate.ejb.HibernatePersistence and version range null to support the bundle org.hibernate.HibernateOSGi_ContainerManaged/1.0.0.
12:01:34,845 | WARN  | 2.0.CR2-thread-1 | container                        | 256 - org.apache.aries.jpa.container - 1.0.0 | There are no suitable providers for the provider class name org.hibernate.ejb.HibernatePersistence and version range null to support the bundle org.hibernate.HibernateOSGi_ContainerManaged/1.0.0.
12:01:34,845 | WARN  | 2.0.CR2-thread-1 | container                        | 256 - org.apache.aries.jpa.container - 1.0.0 | There are no suitable providers for the provider class name org.hibernate.ejb.HibernatePersistence and version range null to support the bundle org.hibernate.HibernateOSGi_ContainerManaged/1.0.0.
12:01:34,845 | WARN  | 2.0.CR2-thread-1 | container                        | 256 - org.apache.aries.jpa.container - 1.0.0 | There are no suitable providers for the provider class name org.hibernate.ejb.HibernatePersistence and version range null to support the bundle org.hibernate.HibernateOSGi_ContainerManaged/1.0.0.

4. You mentioned that scanning for mapping files, classes not supported yet, any plan when this can get supported?

Thanks so much
Freeman

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