Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
usha kiran
Accessing database from portlet
February 12, 2013 10:33 PM
Answer

usha kiran

Rank: New Member

Posts: 1

Join Date: February 20, 2012

Recent Posts

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.
Meera Prince
RE: Accessing database from portlet
February 12, 2013 10:43 PM
Answer

Meera Prince

Rank: Liferay Legend

Posts: 1110

Join Date: February 8, 2011

Recent Posts

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
Mohammad Azharuddin
RE: Accessing database from portlet
February 12, 2013 10:44 PM
Answer

Mohammad Azharuddin

Rank: Expert

Posts: 474

Join Date: September 17, 2012

Recent Posts

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