terrestris / shogun-legacy

⛔️ DEPRECATED, please use https://github.com/terrestris/shogun-core
Other
16 stars 16 forks source link

Let the updateEntity method return the persistant object. #17

Closed chrismayer closed 11 years ago

chrismayer commented 11 years ago

Let the updateEntity method return the persistant object, instead of passing back the object of the request.

marcjansen commented 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.

chrismayer commented 11 years ago

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.