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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -