Hello I have a short question.
Is it possible to save an array containing the same objects?
example:
Code:
function void addUsers( User[] retrievedUsers)
{
//init code()
session.save( retrievedUsers);
//exit code()
}
instead of
Code:
function void addUsers( User[] retrievedUsers)
{
//init code()
for( int i = 0; i < retrievedUsers.length; i++)
{
session.save( retrievedUsers[i]);
}
//exit code()
}
When I do that now (done some other tests as well) I get an error that it does not regonize it
Is there any way to make this work ?
thanks