server/lib/cimi/service/base.rb
# Load an existing database entity for this object, or create a new one
Load an existing database entity for this object, or create a new one
Load an existing database entity for this object or create a new one
def retrieve_entity
      if self.id
        @entity = Deltacloud::Database::Entity::retrieve(@model)
        if @entity.exists?
          after_retrieve
        end
      else
        @entity = nil
      end
    end
def retrieve_entity if self . id @entity = Deltacloud :: Database :: Entity :: retrieve ( @model ) if @entity . exists? after_retrieve end else @entity = nil end end
Load an existing database entity for this object, or create a new one
Load an existing database entity for this object or create a new one