Tabnine Logo
SimpleJpaRepository.save
Code IndexAdd Tabnine to your IDE (free)

How to use
save
method
in
org.springframework.data.jpa.repository.support.SimpleJpaRepository

Best Java code snippets using org.springframework.data.jpa.repository.support.SimpleJpaRepository.save (Showing top 9 results out of 315)

origin: spring-projects/spring-data-jpa

@Transactional
@Override
public <S extends T> List<S> saveAll(Iterable<S> entities) {
  Assert.notNull(entities, "The given Iterable of entities not be null!");
  List<S> result = new ArrayList<S>();
  for (S entity : entities) {
    result.add(save(entity));
  }
  return result;
}
origin: spring-projects/spring-data-jpa

@Transactional
@Override
public <S extends T> S saveAndFlush(S entity) {
  S result = save(entity);
  flush();
  return result;
}
origin: net.osgiliath.modules/net.osgiliath.module.spring-data-jpa

@Override
public <S extends T> S save(S entity) {
 return delegate.save(entity);
}
origin: net.osgiliath.modules/net.osgiliath.module.spring-data-jpa

@Override
public <S extends T> List<S> save(Iterable<S> entities) {
 return delegate.save(entities);
}
origin: xautlx/s2jh4net

/**
 * Saves a given entity. Use the returned instance for further operations as the save operation might have changed the
 * entity instance completely.
 *
 * @param entity must not be {@literal null}.
 * @return the saved entity will never be {@literal null}.
 */
@Transactional
public T save(T entity) {
  return jpaRepository.save(entity);
}
origin: org.springframework.data/spring-data-jpa

@Transactional
public <S extends T> List<S> saveAll(Iterable<S> entities) {
  Assert.notNull(entities, "The given Iterable of entities not be null!");
  List<S> result = new ArrayList<S>();
  for (S entity : entities) {
    result.add(save(entity));
  }
  return result;
}
origin: org.springframework.data/spring-data-jpa

@Transactional
public <S extends T> S saveAndFlush(S entity) {
  S result = save(entity);
  flush();
  return result;
}
origin: dzinot/spring-boot-jpa-data-rest-soft-delete

    S result = (S) resultSet.get(0);
    BeanUtils.copyProperties(entity, result, getNullPropertyNames(entity));
    return (S) super.save(result);
        return super.save(entity);
                .toArray(String[]::new));
        return (S) super.save(result);
return super.save(entity);
origin: xautlx/s2jh4net

jpaRepository.save(entity);
org.springframework.data.jpa.repository.supportSimpleJpaRepositorysave

Popular methods of SimpleJpaRepository

  • delete
  • findAll
  • findOne
  • count
  • readPage
    Reads the given TypedQuery into a Page applying the given Pageable and Specification.
  • exists
  • findById
  • flush
  • getCountQuery
    Creates a new count query for the given Specification.
  • getQuery
    Creates a TypedQuery for the given Specification and Sort.
  • <init>
    Creates a new SimpleJpaRepository to manage objects of the given JpaEntityInformation.
  • applyQueryHints
  • <init>,
  • applyQueryHints,
  • applyRepositoryMethodMetadata,
  • applySpecificationToCriteria,
  • deleteAll,
  • deleteAllInBatch,
  • deleteInBatch,
  • executeCountQuery,
  • getCountQueryString

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now