yasuflatland-lf / damascus

⚔️ CRUD boilerplate generator for Liferay DXP
https://yasuflatland-lf.github.io/damascus-doc/
GNU Lesser General Public License v3.0
50 stars 35 forks source link

Relation Sample fails to compile #82

Closed icarrara closed 4 years ago

icarrara commented 4 years ago

From "https://yasuflatland-lf.github.io/damascus-doc/docs/samples/sample1.html" I created the "base.json" file and launched the "damascus create" command.

Then launched the "blade deploy" command.

I get the below two errors:

`> Task :modules:employee:employee-service:compileJava FAILED C:\dev\liferay\7.2.0-ce-ga1\ipl-workspace\mc-infocomm-ipl\modules\employee\employee-service\src\main\java\com\liferay\sb\employee\service\impl\EmployeeLocalServiceImpl.java:942: error: cannot find symbol newEntry.setUrlTitle(getUniqueUrlTitle(entry, entry.getTitle())); ^ symbol: method getTitle() location: variable entry of type Employee C:\dev\liferay\7.2.0-ce-ga1\ipl-workspace\mc-infocomm-ipl\modules\employee\employee-service\src\main\java\com\liferay\sb\employee\service\impl\EmployeeLocalServiceImpl.java:985: error: cannot find symbol getUniqueUrlTitle(updateEntry, updateEntry.getTitle())); ^ symbol: method getTitle() location: variable updateEntry of type Employee 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. 2 errors

FAILURE: Build failed with an exception.`

In both two statements I changed: newEntry.setUrlTitle(getUniqueUrlTitle(entry, entry.getTitle())); to newEntry.setUrlTitle(getUniqueUrlTitle(entry, entry.getUrlTitle()));

so the "blade deploy" command worked.