在 GlassFish 中配置 jdbcRealm 的表命名约定

发布于 2024-09-12 20:40:40 字数 119 浏览 3 评论 0原文

我正在尝试使用具有“用户”和“组”以外的命名约定的现有表在 GlassFishV3 中配置 jdbcRealm;除非以这种方式命名表,否则该领域似乎无法工作。我的问题是,为什么有限制?除了重命名现有表之外还有其他解决方法吗?

I am trying to configure a jdbcRealm in GlassFishV3 using existing tables that have a naming convention other than "users" and "groups"; the realm does not appear to work unless the tables are named this way. My question is, why the limitation? Is there a work around other than renaming my existing tables?

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

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

发布评论

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

评论(1

有深☉意 2024-09-19 20:40:40

您将需要重命名表或至少加入这些表。正如您所指出的,JDBC Realm、Tomcat 以及 GlassFish 需要某些架构约束。

有希望,我想有足够多的人不喜欢这些限制,所以这里有一个替代实现: http:// /flexiblejdbcrealm.wamblee.org/

我没有尝试过,看起来它会做你想要的。

You are going to need to rename your tables or at least join to these. JDBC Realm, Tomcat's as well as GlassFish's require certain schema constraints as you point out.

There is hope, I guess there are enough people that do not like these limitations that there is an alternate implementation here: http://flexiblejdbcrealm.wamblee.org/

I have not tried it, looks like it will do what you want.

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