Message Boards
deploying a springMvcPortlet with service-Builder
ahmed joti, modified 3 Years ago.
deploying a springMvcPortlet with service-Builder
New Member Posts: 5 Join Date: 8/15/20 Recent Posts
Hi everyone,
im using a liferay 7.1,i already create a springMvcPortlet and i want to use a service-builder to generate the entity model?it is possible ?
and for the service.xml of the service-builder i have to create two entities ,so i do this(a customer can have several contracts :
<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_1_0.dtd"><service-builder package-path="com.integration.formation">
<author>Bryan</author>
<namespace>GB</namespace>
<!-- customer entity -->
<entity name="customer " local-service="true" uuid="true" remote-service="true">
<!-- customer fields -->
<column name="id" primary="true" type="long" />
<column name="name" type="String" />
<column name="customer Id" type="Collection" entity="contract" mapping-key="customer ID" /> <!-- Group instance --> <column name="customerGroupId" type="long" />
<column name="customerCompanyId" type="long" />
<!-- finder --> <finder name="CustomerGroupId" return-type="Collection">
<finder-column name="customerGroupId" />
</finder> </entity> <!-- contrat entity -->
<entity name="contract" local-service="true" uuid="true" remote-service="true">
<!-- client fields -->
<column name="id" primary="true" type="long" />
<column name="numContract" type="String" />
<column name="customertId" type="long" /> <!-- Group instance --> <column name="contractGroupId" type="long" />
<column name="contractCompanyId" type="long" />
<!-- finder --> <finder name="ContractGroupId" return-type="Collection">
<finder-column name="contractGroupId" />
</finder>
</entity>
</service-builder>
Do you have an idea about this problem?
Thanks in advance
im using a liferay 7.1,i already create a springMvcPortlet and i want to use a service-builder to generate the entity model?it is possible ?
and for the service.xml of the service-builder i have to create two entities ,so i do this(a customer can have several contracts :
<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_1_0.dtd"><service-builder package-path="com.integration.formation">
<author>Bryan</author>
<namespace>GB</namespace>
<!-- customer entity -->
<entity name="customer " local-service="true" uuid="true" remote-service="true">
<!-- customer fields -->
<column name="id" primary="true" type="long" />
<column name="name" type="String" />
<column name="customer Id" type="Collection" entity="contract" mapping-key="customer ID" /> <!-- Group instance --> <column name="customerGroupId" type="long" />
<column name="customerCompanyId" type="long" />
<!-- finder --> <finder name="CustomerGroupId" return-type="Collection">
<finder-column name="customerGroupId" />
</finder> </entity> <!-- contrat entity -->
<entity name="contract" local-service="true" uuid="true" remote-service="true">
<!-- client fields -->
<column name="id" primary="true" type="long" />
<column name="numContract" type="String" />
<column name="customertId" type="long" /> <!-- Group instance --> <column name="contractGroupId" type="long" />
<column name="contractCompanyId" type="long" />
<!-- finder --> <finder name="ContractGroupId" return-type="Collection">
<finder-column name="contractGroupId" />
</finder>
</entity>
</service-builder>
Do you have an idea about this problem?
Thanks in advance
David H Nebinger, modified 3 Years ago.
RE: deploying a springMvcPortlet with service-Builder
Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
ahmed joti, modified 3 Years ago.
RE: deploying a springMvcPortlet with service-Builder
New Member Posts: 5 Join Date: 8/15/20 Recent Posts
thank's for your reply , i will try that !