Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 576 Bytes

File metadata and controls

25 lines (18 loc) · 576 Bytes

sessionContains

Checks if the current hibernate session contains the passed in entity.

Returns

  • This function returns boolean

Arguments

Key Type Required Default Description
entity any Yes ---

Examples

function checkSomething( any User ){
  // check if User is already in session
  if( NOT ormService.sessionContains( arguments.User ) ){
     // Not in hibernate session, so merge it in.
     ormService.merge( arguments.User );
  }
}