访问在声纳自定义的定义数据库表 [英] Accessing a custom defined db table in Sonar
问题描述
我在声纳数据库自定义定义的表,我想从一个声纳插件访问到它,我目前通过使用声纳,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屋!