Questions tagged [liferay-service-builder]

Service Builder is a model-driven code generation tool built by Liferay that allows developers to define custom object models called entities. Service Builder generates a service layer through ORM technology that provides a clean separation between your object model and code for the underlying database. Service Builder takes an XML file as input and generates the necessary model, persistence, and service layers for your application.

From the Liferay Developer Guide:

Service Builder is a model-driven code generation tool built by Liferay that allows developers to define custom object models called entities. Service Builder generates a service layer through object-relational mapping (ORM) technology that provides a clean separation between your object model and code for the underlying database. This frees you to add the necessary business logic for your application. Service Builder takes an XML file as input and generates the necessary model, persistence, and service layers for your application. These layers provide a clean separation of concerns. Service Builder generates most of the common code needed to implement create, read, update, delete, and find operations on the database, allowing you to focus on the higher level aspects of service design.

119 questions
8
votes
2 answers

Liferay Service Builder 6.2: Many to one relationships

I want to create a one to many relationships and I've used the following service.xml:
Breiti
  • 579
  • 5
  • 21
7
votes
4 answers

Creating liferay service builder without configuring any database

Is it possible to create liferay service builder without any configuring any database tables in service.xml file. Actually purpose here is to create a service layer using liferay service builder. And there is no database interaction directly in this…
DAIRAV
  • 723
  • 1
  • 9
  • 31
5
votes
3 answers

Liferay Serivce Builder: Not able to run dynamic query

I have two plugin portlets. First has service builder with all entities. Second portlet is using service's jar file to execute Dynamic query. I am using first's service jar in my second plugin portlet to interact with database. But in this jar file…
Varun Arya
  • 335
  • 1
  • 14
4
votes
3 answers

Liferay 7 Service Builder doesn't auto update the database

In my Liferay 7 project, the Service Builder generates well the file tables.sql (with the complete sql) but doesn't include this content in the SERVICECOMPONENT native liferay table as it did for Liferay 6.2. Therefore, when I restart the server,…
Vincent
  • 139
  • 1
  • 13
4
votes
2 answers

CustomSQLUtil gets null value during query retrieval with Liferay 7

Whereas I had no problem with the CustomSQLUtil class in Liferay 6.2, I meet a problem with the new version of this class in Liferay 7. Indeed, the get method returns null instead of the expected query. Does someone has reproduced this ? Here is the…
Vincent
  • 139
  • 1
  • 13
3
votes
3 answers

auto increment value in liferay

I have 2 modules say module 1 aand module 2 , module 1 is using liferay and module 2 is not using liferay. I have a database say myDatabase. Both module 1 and module 2 are using the same database for the read and write operations . module 1 is…
Navankur Chauhan
  • 407
  • 6
  • 22
3
votes
1 answer

Liferay Service Builder - Column of type Collection (List)

I am newbie to Liferay. I would like to build with Service Builder the following column for the entity Traveller:
julianfperez
  • 1,726
  • 5
  • 38
  • 69
3
votes
1 answer

Adding column to many-to-many table using Liferay

I would like to add a column to the association table using service builder on liferay!
user3429578
  • 1,093
  • 3
  • 12
  • 21
2
votes
1 answer

Unit tests for a Liferay service

I wrote a Liferay service. It does complex things with many different expected outputs depending on the inputs. I want to test the outputs with all of these inputs. My service is used by several portlets, so I could manually test using the portlets,…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
2
votes
2 answers

How to create one to many relationship using Liferay service builder

I need to define an one-to-many relationship between my custom entity and a Liferay default entity DDMFormInstance. So one MyCustomEntity could have many DDMFormInstance's. How can I do it?
user9386959
2
votes
1 answer

Liferay Service Builder Table Auto Increment On Each Deployment

In liferay i have a entity as below:
Varun Arya
  • 335
  • 1
  • 14
2
votes
1 answer

Liferay Service Builder many to many relationship with custom column

I have a question relating to the Liferay Service Builder. I want to create a many-to-many relationship with custom colums in the created Join table. This is my service.xml:
rawdog
  • 712
  • 8
  • 24
2
votes
1 answer

Liferay 7 Service Builder without creating database table and will call/invoke/consume RESTful web services API

I'm implementing Liferay 7 Service Builder which should not create database table and will call RESTful web services API. The web services to be invoked are custom and outside the Liferay; they have nothing to do with Liferay at all. The web…
Julez
  • 1,010
  • 22
  • 44
2
votes
2 answers

Finder Util class not generated with Liferay 7 Service Builder

Whereas I had no problem with the Service Builder in Liferay 6.2, I meet a blocking issue in Liferay 7 when I am building service to generate my first Finder Util class. When I discover that, I even decided to start from scratch a project, the…
Vincent
  • 139
  • 1
  • 13
2
votes
2 answers

Delete record on sepecific field value in liferay service builder

I want to delete specific record using Field Name Table : Dummy Entity Field Id Field Name public void deleteLocation(req, res){ String getLocationName = request.getParameter("locationName"); Location locationToDelete = new…
Vinita Shah
  • 118
  • 2
  • 13
1
2 3 4 5 6 7 8