I am responsible for the restructuring of the website, which receives about 250,000 visitors per day. We would like to use Scala, but this does not work very well with Spring (in some minor cases) and Hibernate (there is a big and very annoying inconsistency here if you want to use the scala collections we make).
The application itself will have about 40-50 tables.
Besides Hibernate, is there an ORM that works great with scala and is just as reliable and reliable as Hibernate? Does it also have the same capabilities, or will we encounter leaky abstractions if we do not use Hibernate?
It would be a big risk for us to go with a framework that is newer and doesn't seem to have much industry support ... and at the same time, Hibernate is a real pain to program against using Scala.
1) The Java Collection ↔ scala is absolutely painful. There are many more patterns and cracks for writing.
2) The IDE does not import JavaConversions and java interfaces automatically ... so you need to do this manually. Import optimization in IDEA is going to destroy all the manual work.
3) There is also a cost of performance for converting back and forth all the time in your domain objects and your dao classes.
4) Not to mention that there should be many castings, which makes the code ugly as a sin.
, 100% Scala, , , .
, ?