spring roo中的主要方法

发布于 2024-12-29 20:49:40 字数 260 浏览 7 评论 0原文

我对 spring roo 和 JPA 很陌生。首先,我遵循 http://static.springsource.org/spring- roo/reference/html/beginning.html 构建一个披萨店网站。现在我想编写一些 JPA 查询来测试实体。是否可以写一个main方法来测试?

I'm very new to spring roo and JPA. To start, I followed http://static.springsource.org/spring-roo/reference/html/beginning.html to build a Pizza Shop website. Now I'd like to write some JPA queries to test the entities. Is it possible to write a main method to test?

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

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

发布评论

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

评论(1

巴黎夜雨 2025-01-05 20:49:40

Spring Roo 也为实体生成(或可以生成)测试用例。 -- 不要让你被空的测试类误导。他们使用与普通类相同的 AspectJ“注入”技术来进行测试。

当然,您可以“扩展”该测试。

Spring Roo generate (or can generate) Testcases for the entities too. -- Do not let you misleading by the empty Test classes. They use the same AspectJ "injecting" technology for that Tests like for normal classes.

Of course you can "extend" that tests.

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