MCPcopy Create free account
hub / github.com/ebean-orm/ebean / save

Method save

ebean-api/src/main/java/io/ebean/Database.java:748–748  ·  view source on GitHub ↗

Either Insert or Update the bean depending on its state. If there is no current transaction one will be created and committed for you automatically. Save can cascade along relationships. For this to happen you need to specify a cascade of CascadeType.ALL or CascadeType.PERSIST on the OneToMa

(Object bean)

Source from the content-addressed store, hash-verified

746 * will be set against each order detail when it is saved.
747 */
748 void save(Object bean) throws OptimisticLockException;
749
750 /**
751 * Save all the beans in the collection.

Calls

no outgoing calls

Tested by 15

findWithTransactionMethod · 0.76
usingDatabaseMethod · 0.76
fixedClockMethod · 0.76
basicMethod · 0.76
testVersioningMethod · 0.76
testReservedKeywordsMethod · 0.76
issued1Method · 0.76
issue_1341Method · 0.76