Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Samir Gami
Service Builder Entity/Namespace
14. Dezember 2011 20:53
Antwort

Samir Gami

Rang: Regular Member

Nachrichten: 159

Eintrittsdatum: 3. Februar 2011

Neue Beiträge

Regarding service builder I have few query,

1) I want the service builder <entity> name with "dot" symbol, like,
<entity name="S123.TableName" local-service="true" remote-service="false">

2) Namespace should allow the numeric values,
<namespace>N123</namespace>

Both are giving errors,
Is there any specific setting to support numeric value in namespace OR allow punctuation marks in <entity> name ?

Setup:
Liferay 6 with MYSQL
Tina Agrawal
RE: Service Builder Entity/Namespace
14. Dezember 2011 22:15
Antwort

Tina Agrawal

Rang: Expert

Nachrichten: 260

Eintrittsdatum: 2. Januar 2008

Neue Beiträge

Hi Samir,

You cant do that until you change the ServiveBuilder.java code.

Regards,
Tina Agrawal
Sunil G
table creation error
28. Dezember 2011 03:08
Antwort

Sunil G

Rang: New Member

Nachrichten: 6

Eintrittsdatum: 8. Dezember 2011

Neue Beiträge

hi Tina,

this is error messages while building

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

and my service.xml is

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd">
<service-builder package-path="com.cignex">
<author>sunil.kumar</author>
<namespace>library</namespace>

<entity name="Books" local-service="true" remote-service="true">

<!-- PK fields -->

<column name="boookId" type="long" primary="true" />

<!-- Audit fields -->

<column name="companyId" type="long" />
<column name="userId" type="long" />
<column name="userName" type="String" />
<column name="createDate" type="Date" />
<column name="modifiedDate" type="Date" />

<!-- Other fields -->

<column name="field1" type="String" />
<column name="field2" type="boolean" />
<column name="field3" type="int" />
<column name="field4" type="Date" />
<column name="field5" type="String" />

<!-- Order -->

<order by="asc">
<order-column name="field1" />
</order>

<!-- Finder methods -->

<finder name="Field2" return-type="Collection">
<finder-column name="field2" />
</finder>
</entity>
</service-builder>

Help me
Thanks in Advance
Jelmer Kuperus
RE: table creation error
28. Dezember 2011 03:17
Antwort

Jelmer Kuperus

Rang: Liferay Legend

Nachrichten: 1192

Eintrittsdatum: 10. März 2010

Neue Beiträge

That's just the java compiler warning you that you are using api calls that are deprecated and as such might be removed in new versions of that api. It should not affect your application but it's poor style to use deprecated calls
Sunil G
RE: table creation error
29. Dezember 2011 04:42
Antwort

Sunil G

Rang: New Member

Nachrichten: 6

Eintrittsdatum: 8. Dezember 2011

Neue Beiträge

hi jelmer kuperus,

problem is entities are entered in service component table after some hours, i build it.
and even tables are getting created after some time.

do u have any idea about this?