Actually, look at the save () code:
public <T extends JPABase> T save() { _save(); return (T) this; }
Therefore, it simply calls _save () and returns itself to the chain of calls.
_save is a function that contains real business logic.
save is just a more practical facade for active record design.
Why is _save public and not protected, for example? I really do not know.
_save () can be called without any IMO problems, but it returns void. It's all;)
source share