You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jorge Reyes edited this page May 29, 2015
·
3 revisions
Save an entity using hibernate transactions or not. You can optionally flush the session also.
###Returns
This function returns void
###Arguments
Key
Type
Required
Default
Description
entity
any
Yes
---
forceInsert
boolean
No
false
flush
boolean
No
false
transactional
boolean
No
true
Use ColdFusion transactions or not
###Examples
varuser=ormService.new("User");populateModel(user);ormService.save(user);// Save with immediate flushvaruser=ormService.new(entityName="User",lastName="Majano");ormService.save(entity=user,flush=true);