jocom
2 questions
1
votes
1
answer
98
views
Select on Northwind database using JPA and JDBC Template
I would like to perform select statement on Northwind database like this bellow.
select distinct b.*, a.CategoryName
from Categories a
inner join Products b on a.CategoryID = b.CategoryID
where b.Discontinued = 'N'
order by b.ProductName;
I have two problems regarding this operation :
I have crea...
1
votes
1
answer
45
views
Why I do not need a configuration bean for Environment interface
I don't understand why I don't need configuration bean when I want to use Environment interface? For example, to use environment variable 'filename' I have to @Autowired Environment in my class
@Autowired
private Environment env;
public BigDecimal getRate(String currency, Date rateDate) {
fileNam...