i am working with scala in few days. and i am really confused with this problem .
i really tried to solve the peoblem but i can't..
My java code
@Override
public void saveOrUpdateAll(Collection<T> entities) {
Session session = getSession();
for (T entity : entities) {
session.saveOrUpdate(entity);
}
}
Scala Code
@Override
def saveOrUpdateAll( entities:Collection[T]){
var session:Session = getSession()
var entity:T=null
for (entity :entities) {
session.saveOrUpdate(entity);
}
}
search for scala for each. and am really confused about that .. if you know how to solve this problem please share your answer here.. and Thanx..
with regards Milano.. :)