NIT-Software / Modern-Ecommerce

Enterprise Modern E-commerce: Spring Boot, Spring data REST APIs + AngularJS/Bootstrap. The project is supporting by NIT-Software & 689Cloud, Inc. It's FREE open source code, you can clone, custom and redistribute as your needs
142 stars 93 forks source link

No getters and setters #8

Closed vbhambhu closed 6 years ago

vbhambhu commented 6 years ago

Hi I imported application to intelij. Created database and change config.

Seems like no getter and setter for model classes. I am getting


Error:(37, 52) java: cannot find symbol
  symbol:   method getUserId()
  location: variable userToken of type com.nitsoft.ecommerce.database.model.UserToken
PaskoZhelev commented 6 years ago

That is because they use the Project Lombok library which generates the getters and setters automatically when you add annotations to the model class.

Check whether the Lombok library is imported correctly and this issue would be resolved.

vbhambhu commented 6 years ago

Thanks, It was imported successfully but for some reason, it was not working. After updating dependency to below worked fine

<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.16.20</version>
    <scope>provided</scope>
</dependency>