Enhancement 303 : ENHANCEMENT - Add explicit insert() ... for ease of data copy etc
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.7.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
26/05/2010
Updated 
26/05/2010
Type 
Enhancement
 
Attachments 
No attachments

Normally you use save() and Ebean will determine to insert or update the bean based on its state.

For stateless applications you may want to explicitly use update() to force Ebean to execute an update.

The explicit insert() can be useful when you are transferring data between databases and fetching beans from one to insert into another db. In this case you want to explicitly specify that the bean should be inserted.

 
Rob 26 May 09:44
Fixed in HEAD

Fixed in HEAD.

woResponse

Upload a file