如何定义和使用bean进行eclipselink持久化?

发布于 2024-10-02 15:32:31 字数 234 浏览 1 评论 0原文

我正在开发一个使用 vaadin 框架的应用程序。我使用 Vaadin-AppFoundation 库进行数据库访问,该库使用 persistence.xml。如何使用 springframework 为这个持久化上下文定义一个 bean 以及如何使用它?

请任何建议,我们将不胜感激。

I am developing an application which uses the vaadin framework. I used Vaadin-AppFoundation library for database access, that uses persistence.xml. How to define a bean using springframework for this persistence context and how to use it?

Please, any suggestions would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

橘香 2024-10-09 15:32:31

抱歉,您是否检查过您链接的持久性 Wiki 页面?发布?

如果您正在寻找 JPA 的更一般性介绍,也许可以看看

如果这没有帮助,你能澄清一下这个问题吗?

Sorry for asking but did you check the Persistence wiki page of the link you posted?

If you're looking for a more general introduction to JPA, maybe have a look at the Introduction to the Java Persistence API in the Java EE tutorials.

If this doesn't help, can you clarify the question?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文