we have a project written in Java. It is a maven project, that has jsp pages and a lot of java code:
- servlets for handling user requests and dealing out responses.
- classes of logic used by servlets in order to process the required logic.
- classes of SQL generators used to connect to database and perform the specific queries required by the logic.
Well, we are looking towards Scala. For example, we use mappers in order to get a collection of entities from the database and after that transform this collection, filter it and return to the servlet. That seems like a good thing to do in Java. The question is - how can I integrate that into an existing project? Can I use in my logic files written in Java some Scala classes that again use the mapper files written in Java?