-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.X, Master
-
Fix Version/s: 7.0.X, 7.1.X, 7.2.1 CE GA2, 7.2.X, 7.3.10 DXP GA1, Master
-
Component/s: Core Infrastructure > Service Builder
-
Labels:
-
Branch Version/s:7.2.x, 7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
Important information: Service Builder solution won't be available in Liferay Workspace until a new version of it will be released.
You can manually apply latest available Service Builder module version with following steps:
- Go to https://mvnrepository.com/artifact/com.liferay/com.liferay.portal.tools.service.builder and take last released version number. For example, today last released version is: 1.0.309
- Go to Liferay Workspace root folder
- Add following line to gradle.properties file:
com.liferay.portal.tools.service.builder.version=1.0.309
(replace 1.0.309 with version number obtained from maven central page)
Steps to reproduce
- Create a Liferay Workspace for Liferay 7.1 or 7.0 with a service builder project, for example with blade:
- blade init -v 7.1
- blade create test -t service-builder
Note: in order to test LPS solution, follow the steps explained above to edit gradle.properties file, so latest service builder version is applied to Liferay workspace
- Configure a service builder entity with following service.xml
<service-builder package-path="test"> <namespace>FOO</namespace> <entity local-service="true" name="Foo" remote-service="true" uuid="true"> <column name="id" primary="true" type="long" /> <column name="foo" type="long" /> </entity> </service-builder>
- Execute gradlew buildService
- Execute gradlew deploy
- Expected behavior: generated code is compiled successfully
- Wrong behavior: following compile error is produced
> Task :modules:test:test-service:compileJava FAILED C:\Temp\ServiceBuilder\modules\test\test-service\src\main\java\test\model\impl\FooModelImpl.java:338: error: variable foo is already defined in method accept public void accept(Foo foo, Object foo) { ^ C:\Temp\ServiceBuilder\modules\test\test-service\src\main\java\test\model\impl\FooModelImpl.java:339: error: cannot find symbol foo.setFoo((Long)foo); ^ symbol: method setFoo(Long) location: variable foo of type Object Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':modules:test:test-service:compileJava'. > Compilation failed; see the compiler error output for details.
- Expected behavior: generated code is compiled successfully
- is caused by
-
LPS-88665 Create internal functional attribute getter and setter methods and to duplication in generated models
-
- Closed
-
- is fixed by
-
LPS-103068 Text of range_comment.ftl file is not correct, "ORDER BY" clause is always added to SQL query
- Closed