Foros de discusión

Accessing database from portlet

usha kiran, modificado hace 11 años.

Accessing database from portlet

New Member Mensaje: 1 Fecha de incorporación: 21/02/12 Mensajes recientes
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, modificado hace 11 años.

RE: Accessing database from portlet

Liferay Legend Mensajes: 1111 Fecha de incorporación: 8/02/11 Mensajes recientes
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, modificado hace 11 años.

RE: Accessing database from portlet

Expert Mensajes: 492 Fecha de incorporación: 17/09/12 Mensajes recientes
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