Closed chrismayer closed 11 years ago
Is it possible to declare updatedObject
of type entityClass
instead of Object
? I am unsure about how one would do this in Java.
Feel free to merge this with or without a more specific type for entityClass
.
Yes, it would be possible but I would suggest to have it for nearly all the methods in the DAO, which will be done in the next big refactoring at once instead of doing this for the single method.
Let the updateEntity method return the persistant object, instead of passing back the object of the request.