java - What is the difference in saving? -
i know can save objects in 2 different ways. diference between these lines?
ebean.save(network); network.save();
there no difference.
the play framework provides save()
method, , others, default on model
types mapped persisted entities.
the method same thing ebean.save()
gives benefit of abstracting away details of vendor specific orm being used. if using play framework, best practice call save()
method directly on model/entity call methods on ebean
directly.
Comments
Post a Comment