Tribune

Home » Liferay Portal » English » Liferay Legacy

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Glay Glay
About service.xml
9 dicembre 2005 1.12
Risposta

Glay Glay

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 8 dicembre 2005

Messaggi recenti

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
9 dicembre 2005 1.18
Risposta

Frerk Meyer

Punteggio: Junior Member

Messaggi: 32

Data di Iscrizione: 25 ottobre 2005

Messaggi recenti

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
9 dicembre 2005 10.16
Risposta

Brian Chan

LIFERAY STAFF

Punteggio: Liferay Master

Messaggi: 751

Data di Iscrizione: 4 agosto 2004

Messaggi recenti

The DTD (at top of service.xml) also gives detailed instructions on how to use it.
Glay Glay
About service.xml
12 dicembre 2005 19.11
Risposta

Glay Glay

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 8 dicembre 2005

Messaggi recenti

Thanks all&#33;&#33;&#33;
Glay Glay
About service.xml
12 dicembre 2005 19.32
Risposta

Glay Glay

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 8 dicembre 2005

Messaggi recenti

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
12 dicembre 2005 21.47
Risposta

Brian Chan

LIFERAY STAFF

Punteggio: Liferay Master

Messaggi: 751

Data di Iscrizione: 4 agosto 2004

Messaggi recenti

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
14 dicembre 2005 18.14
Risposta

Glay Glay

Punteggio: New Member

Messaggi: 5

Data di Iscrizione: 8 dicembre 2005

Messaggi recenti

Thanks so much~
Mohammad Islam
RE: About service.xml
22 giugno 2012 13.07
Risposta

Mohammad Islam

Punteggio: New Member

Messaggi: 10

Data di Iscrizione: 18 aprile 2012

Messaggi recenti

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
22 giugno 2012 14.55
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11046

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

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
23 giugno 2012 8.02
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

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
24 giugno 2012 7.20
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11046

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

Ooops, my bad. Hope they don't hold it against me! emoticon
Hitoshi Ozawa
RE: About service.xml
24 giugno 2012 15.28
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

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
26 giugno 2012 5.48
Risposta

Mohammad Islam

Punteggio: New Member

Messaggi: 10

Data di Iscrizione: 18 aprile 2012

Messaggi recenti

Thanks.

MO
Hitoshi Ozawa
RE: About service.xml
30 giugno 2012 8.14
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

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
1 luglio 2012 2.04
Risposta

Juan Gonzalez

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2794

Data di Iscrizione: 28 ottobre 2008

Messaggi recenti

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?