EJB 3.0 和 SQL

发布于 2024-09-14 17:01:44 字数 271 浏览 4 评论 0原文

我正在尝试使用 JDeveloper 11g 构建一个简单的应用程序。我连接到 MSSQL Server 2008 数据库并从中获取数据。 我是 Enterprise Java Beans 3.0 的新手,所以我不知道应该为数据更新、删除或插入编写什么代码以及在哪里编写。我创建了一个应用程序(Fusion Web 应用程序),但我对该应用程序所做的更改不会影响数据库。我是 Enterprise Java Beans 3.0 的新手,所以我不知道应该为数据更新、删除或插入编写哪些代码以及在哪里写。有人能帮我解决这个问题吗?

I am trying to build a simple application with JDeveloper 11g. I connect to a MSSQL Server 2008 database and get data from it.
I am new at Enterprise Java Beans 3.0 so I don't know what code I should write for data update, delete or insert and where to write. I made an application(Fusion Web Application) but the changes I made on that application don't affect the database.I am new at Enterprise Java Beans 3.0 so I don't know what code I should write for data update, delete or insert and where to write. Could anyone help me with this problem?

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

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

发布评论

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

评论(1

三生路 2024-09-21 17:01:44

您有多种选择,但推荐的方法*是使用 JPA(Java Persistence API)来存储和检索数据。要学习JPA,可以阅读Java EE教程的这一章:简介Java Persistence API

*:对于某些项目来说,考虑其他选项也是有意义的,但 JPA 是 Java EE 5 和 6 的标准持久性技术。

You have several options, but the recommended way* is to use JPA (Java Persistence API) for storage and retrieval of your data. To learn JPA, you can read this chapter of Java EE tutorial: Introduction to the Java Persistence API

*: For some projects it makes sense to consider other options as well, but JPA is the standard persistence technology of Java EE 5 and 6.

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