Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
amani kh
Service Builder
January 31, 2013 1:29 AM
Answer

amani kh

Rank: Junior Member

Posts: 43

Join Date: November 16, 2012

Recent Posts

hey, I am beginner to liferay environnement, I've created some portlets that I wanna connect to my DB, I read a little about SERVICE BULDER but I am still a bit confused..
my qest is: does Service Builder creates my custom Tables (when deploy the portlet)? or it is used just to make connection to DB's tables after I do create them ?

hope u give me some explanations
Jignesh Vachhani
RE: Service Builder
January 31, 2013 1:36 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 785

Join Date: March 10, 2008

Recent Posts

Yes it will create your custom tables as per the defination which you defines in service.xml file.
You can see service builder concept in details on : http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/service-build-2
Jitendra Rajput
RE: Service Builder
January 31, 2013 1:36 AM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 858

Join Date: January 7, 2011

Recent Posts

Check table.sql file inside your portlets sql folder it has all the queries to generate tables specified in service.xml.
When ever you deploy portlet liferay automatically creates table for you.
amani kh
RE: Service Builder
January 31, 2013 1:57 AM
Answer

amani kh

Rank: Junior Member

Posts: 43

Join Date: November 16, 2012

Recent Posts

thaks a lot, one more qest plz does it automatically create tables in lportal DB?
Jignesh Vachhani
RE: Service Builder
January 31, 2013 3:54 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 785

Join Date: March 10, 2008

Recent Posts

Yes when you build service and deploy your portlet then it will automatically generates tables in connected DB