开发者

OSGI - Hibernate + JBoss Seam

开发者 https://www.devze.com 2022-12-16 07:14 出处:网络
I am running a JBoss Seam web application with Hibernate as the persistence provider.I am considering migrating to OSGI to simplify deployment and updates.

I am running a JBoss Seam web application with Hibernate as the persistence provider. I am considering migrating to OSGI to simplify deployment and updates.

I don't have any experience yet with OSGI, so I don't know if this can be done and what the limit开发者_JS百科ations are.

For instance, if I change entity classes and I want Hibernate to drop some tables and create some new ones, will that be possible? Does hibernate need to have hooks into OSGI so it knows to drop table a and create table b?

Walter


I'm not sure I fully grasp your question. If you choose to use OSGi to modularize your application, that choice has no impact on the behavior of Hibernate. You can, of course, make calls into Hibernate's SchemaExport or SchemaUpdate APIs when you activate bundles to manage your schema, but Hibernate won't drive that process for you. You'll have to do it yourself.

0

精彩评论

暂无评论...
验证码 换一张
取 消