留言板

Accessing database from portlet

usha kiran,修改在11 年前。

Accessing database from portlet

New Member 发布: 1 加入日期: 12-2-21 最近的帖子
We have created tables from the backend. Now form a portlet we want to query those tables wht are the different methods to query the tables,
One of them is to use service builder, but i think by using service builder again we need to create the tables, which is not the case as i have already created the tables and they contain data.

Please suggest some approach.
thumbnail
meera prince,修改在11 年前。

RE: Accessing database from portlet

Liferay Legend 帖子: 1111 加入日期: 11-2-8 最近的帖子
Hi usha kiran,

Liferay providing gr8 feature call Service Builder from this we can create tables and also create all service classess from that we can access data from tables.

http://www.liferay.com/community/wiki/-/wiki/Main/Service+Builder
http://www.javabeat.net/2011/06/using-liferays-service-builder-part-1/

Liferay IDE direct support to create servises using service builder.

Regards,
Meera Prince
thumbnail
mohammad azaruddin,修改在11 年前。

RE: Accessing database from portlet

Expert 帖子: 492 加入日期: 12-9-17 最近的帖子
HI
If you use service builder you need not to create tables manually.And for retrieving u can use dynamic query,finder method or custom sql
Regards azar