访问在声纳自定义的定义数据库表 [英] Accessing a custom defined db table in Sonar

查看:345
本文介绍了访问在声纳自定义的定义数据库表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在声纳数据库自定义定义的表,我想从一个声纳插件访问到它,我目前通过使用声纳,Web服务/控制器访问退出表 所以我怎么能得到这个工作?

I have a custom defined table in sonar DB , and I wanted to get an access to it from a Sonar plugin , I'm currently accessing the exiting tables by using sonar , Web Service / controller so how can I get this done ?

推荐答案

声纳没有定义任何扩展来添加自定义数据库表,所以没有API,你想达到什么。

Sonar does not define any extension to add custom DB tables, so there's no API for what you want to achieve.

现在,无论你的理由来创建一个自定义数据库表(我想真正了解他们),你必须创建自己的声纳叉可以添加MyBatis的映射器和放大器; DAO的声纳Java的一面,和/或增加对RoR的一侧一个Ruby模型能够从网络侧查询该表。

Now, whatever your reasons for creating a custom DB table (I'd like to know them actually), you have to create your own fork of Sonar to be able to add MyBatis mappers & DAOs on Java's side of Sonar, and/or add a Ruby model on RoR side to be able to query the table from the Web side.

这篇关于访问在声纳自定义的定义数据库表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆