Sbt (Scala) with Spring, Hibernate & Vaadin

Though it is said that it is not recommended to use sbt & Spring,Hibernate to build Scala based projects, I have done a little testing application with all those technologies. And later I extended it to use Vaadin also. And I'm not interested in telling all the techneques by line by line. I assume that you'll have some basic knowledge on sbt, scala, & vaadin and average level in Spring & Hibernate, Java.
And you must first be sure that you have installed apache maven, Scala compiler , Sbt & mysql(other intellij idea). I have used to build these 2 projects Intellij Idea. you can run these in command prompt(or terminal) & see. Run Hibernatejava using "mvn clean install" & HibernateScala using "sbt update", then "sbt" then "jetty". Before running for Hibernatejava example you need not create a database, but for HibernateScala you have to create a database named "hibernate_test" using mysql. (And I'm not going to recommend any technlogy is better than other)

here using java: https://docs.google.com/leaf?id=0BwU-4pKejn4OYjU4ZTViZjMtMjcxNS00YzZhLTljNTctYmIxNmY1ZjEzYTAw&hl=en

here using Scala: https://docs.google.com/leaf?id=0BwU-4pKejn4OYmQyYmRkMzctYTU1MC00MzY0LWE4YjUtNGQ2N2NkZmRhYzM2&hl=en

after running check that this has run well, in "hibernate_test" database that correct data has been inserted.

You'll see the difference

Comments

Popular posts from this blog

Stubbing Netflix OSS Eureka for local development of microservices

marketing through marketing and non-marketing materials for small and medium organizations

SSH and Internet connection sharing over crossover ethernet cable from OS X (Mac) to Raspberry PI (model B)