Tony L edited a comment on New Feature HHH-7527

Steve, I'm not sure what the exact problems is.

Is hibernate not quite ready yet to enter as an OSGI bundle (this says its good to go: http://www.infoq.com/news/2012/01/hibernate-4-released/), or are you just missing someone who can generate you the OSGI Manifests in 'a way that should be done'?

I have gone though the exercise with Hibernate 3.5 and I have managed to package it for OSGI with Bundlor - tested and works under Glassfish/Felix OSGI environment in a Web Application Bundle.

Overall, I had the hibernate core and commons-annotations as bundles, and entitymanager and annotations were fragments with core as host. That seemed to be the approach from the Spring Bundle Repository and avoids problems with bundles importing and exporting the same packages.

I have identified the dependencies: antlr, javassist, cglib, dom4j and slf4j. I decided which versioned imports and exports were required - which was the hardest part for me not being a Hibernate dev.

I had a big problem with HQL queries as decsribed here:
https://hibernate.onjira.com/browse/HHH-6536
https://hibernate.onjira.com/browse/HHH-6165

which also seemed to be fixed, and was due to Antlr not having access to Hibernate. I fixed this for Hibernate 3.5 with an Antlr fragment that provides the visibility.

If you want I can share the template files for Bundlor for Hibernate 3, and go through this for Hibernate 4.

Steve, Can you please help explain a bit here and if I am missing something?

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