Hallo everyone,
I would like to complete a program on
Java with Spring Boot. I have a mini problem.
I use two different tables on my sql table, one for price one for discount.
I would like to calculate the price on ProductService, by substract the row of column of another Class, the class of ProductDiscount,for example.
So,
I have two tables in sql for price and for discount .There are specific column, which is used to calculate at each class .
On the total price I should calculate the final price. It is essential to use another class to add or multiple.
Is it possible? Are there any examples, I cannot find something similar in the web, add or substract data from different classes.