Forums

Home » Liferay Portal » English » Liferay Legacy

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Glay Glay
About service.xml
December 9, 2005 1:12 AM
Answer

Glay Glay

Rank: New Member

Posts: 5

Join Date: December 8, 2005

Recent Posts

How to use of service.xml inside the portal?<br /><br />It seems to be able to generate the EJB Components and also update the SQL statement, so to modify any Table changes (adding fields or removing fields).<br /><br />And after I use the &quot;ant build-services&quot; command, it would make a whole data structure change. So can I have the original version of service.xml in the &quot;portal&quot; folder?<br /><br />Or is there any instruction about it???
Frerk Meyer
About service.xml
December 9, 2005 1:18 AM
Answer

Frerk Meyer

Rank: Junior Member

Posts: 32

Join Date: October 25, 2005

Recent Posts

Look here:<br /><a href="http://www.liferay.com/web/guest/community/forums/message_boards/message/41145" target="_blank">Service.xml HowTo</a><br /><br />Frerk Meyer<br />
Brian Chan
About service.xml
December 9, 2005 10:16 AM
Answer

Brian Chan

LIFERAY STAFF

Rank: Liferay Master

Posts: 751

Join Date: August 4, 2004

Recent Posts

The DTD (at top of service.xml) also gives detailed instructions on how to use it.
Glay Glay
About service.xml
December 12, 2005 7:11 PM
Answer

Glay Glay

Rank: New Member

Posts: 5

Join Date: December 8, 2005

Recent Posts

Thanks all&#33;&#33;&#33;
Glay Glay
About service.xml
December 12, 2005 7:32 PM
Answer

Glay Glay

Rank: New Member

Posts: 5

Join Date: December 8, 2005

Recent Posts

And I just want to know where can I download the service.xml which generated the current classes (version 3.6)<br /><br />Because I see the current service.xml is updated (26/8) and is different from the classes that were generated before(15/8).<br /><br />And when I use &quot;ant build-services&quot;, it would then generate many unrealistic classes that is not used by the current Liferay (eg. Organization.java) and make Liferay 3.6 non-runable.<br /><br />Thanks
Brian Chan
About service.xml
December 12, 2005 9:47 PM
Answer

Brian Chan

LIFERAY STAFF

Rank: Liferay Master

Posts: 751

Join Date: August 4, 2004

Recent Posts

Yes, some of the service.xml for 4.0.0 got in there. You could porbably use the 3.6.0 and be safe.
Glay Glay
About service.xml
December 14, 2005 6:14 PM
Answer

Glay Glay

Rank: New Member

Posts: 5

Join Date: December 8, 2005

Recent Posts

Thanks so much~
Mohammad Islam
RE: About service.xml
June 22, 2012 1:07 PM
Answer

Mohammad Islam

Rank: New Member

Posts: 10

Join Date: April 18, 2012

Recent Posts

Hi Brian:
Is there any way I can auto generate service.xml against legacy database? Creating service.xml for existing tables is time consuming.

Thanks.
Mohammad
David H Nebinger
RE: About service.xml
June 22, 2012 2:55 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 6133

Join Date: September 1, 2006

Recent Posts

As CEO, I wouldn't expect a response from Brian, although I guess it's always possible...

No, there is currently nothing to automate building of the service.xml. You could try the tools available that know how to build the hibernate hbm.xml file as it would give you a head start on the service.xml, but you'll still be in for some tweaking...
Hitoshi Ozawa
RE: About service.xml
June 23, 2012 8:02 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

As CEO, I wouldn't expect a response from Brian, although I guess it's always possible...


Brian is the Chief Software Architect at Liferay.com. Bryan Cheung is the CEO at Liferay.com.
David H Nebinger
RE: About service.xml
June 24, 2012 7:20 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 6133

Join Date: September 1, 2006

Recent Posts

Ooops, my bad. Hope they don't hold it against me! emoticon
Hitoshi Ozawa
RE: About service.xml
June 24, 2012 3:28 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Is there any way I can auto generate service.xml against legacy database? Creating service.xml for existing tables is time consuming.


Creating a tool to generate database table entity definitions for service.xml based on existing database table isn't too difficult.
I have a Excel tool that gathers metadata from database tables to generate a xml schema.
The difficult part is what to do with foreign keys and finder methods.
Mohammad Islam
RE: About service.xml
June 26, 2012 5:48 AM
Answer

Mohammad Islam

Rank: New Member

Posts: 10

Join Date: April 18, 2012

Recent Posts

Thanks.

MO
Hitoshi Ozawa
RE: About service.xml
June 30, 2012 8:14 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Replied about having foreign keys in the following thread:

http://www.liferay.com/community/forums/-/message_boards/message/14640347
Juan Gonzalez
RE: About service.xml
July 1, 2012 2:04 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1841

Join Date: October 28, 2008

Recent Posts

Hitoshi Ozawa:
Is there any way I can auto generate service.xml against legacy database? Creating service.xml for existing tables is time consuming.


Creating a tool to generate database table entity definitions for service.xml based on existing database table isn't too difficult.
I have a Excel tool that gathers metadata from database tables to generate a xml schema.
The difficult part is what to do with foreign keys and finder methods.


Why do you see difficult? Perhaps we can create a community project for reverse engineer service.xml. What do you think?