フォーラム

ホーム » Liferay Portal » English » Liferay Legacy

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Glay Glay
About service.xml
2005/12/09 1:12
答え

Glay Glay

ランク: New Member

投稿: 5

参加年月日: 2005/12/08

最近の投稿

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
2005/12/09 1:18
答え

Frerk Meyer

ランク: Junior Member

投稿: 32

参加年月日: 2005/10/25

最近の投稿

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
2005/12/09 10:16
答え

Brian Chan

LIFERAY STAFF

ランク: Liferay Master

投稿: 751

参加年月日: 2004/08/04

最近の投稿

The DTD (at top of service.xml) also gives detailed instructions on how to use it.
Glay Glay
About service.xml
2005/12/12 19:11
答え

Glay Glay

ランク: New Member

投稿: 5

参加年月日: 2005/12/08

最近の投稿

Thanks all&#33;&#33;&#33;
Glay Glay
About service.xml
2005/12/12 19:32
答え

Glay Glay

ランク: New Member

投稿: 5

参加年月日: 2005/12/08

最近の投稿

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
2005/12/12 21:47
答え

Brian Chan

LIFERAY STAFF

ランク: Liferay Master

投稿: 751

参加年月日: 2004/08/04

最近の投稿

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
2005/12/14 18:14
答え

Glay Glay

ランク: New Member

投稿: 5

参加年月日: 2005/12/08

最近の投稿

Thanks so much~
Mohammad Islam
RE: About service.xml
2012/06/22 13:07
答え

Mohammad Islam

ランク: New Member

投稿: 10

参加年月日: 2012/04/18

最近の投稿

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
2012/06/22 14:55
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11047

参加年月日: 2006/09/01

最近の投稿

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
2012/06/23 8:02
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7949

参加年月日: 2010/03/23

最近の投稿

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
2012/06/24 7:20
答え

David H Nebinger

Community Moderator

ランク: Liferay Legend

投稿: 11047

参加年月日: 2006/09/01

最近の投稿

Ooops, my bad. Hope they don't hold it against me! emoticon
Hitoshi Ozawa
RE: About service.xml
2012/06/24 15:28
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7949

参加年月日: 2010/03/23

最近の投稿

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
2012/06/26 5:48
答え

Mohammad Islam

ランク: New Member

投稿: 10

参加年月日: 2012/04/18

最近の投稿

Thanks.

MO
Hitoshi Ozawa
RE: About service.xml
2012/06/30 8:14
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7949

参加年月日: 2010/03/23

最近の投稿

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
2012/07/01 2:04
答え

Juan Gonzalez

LIFERAY STAFF

ランク: Liferay Legend

投稿: 2794

参加年月日: 2008/10/28

最近の投稿

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?