com.vladmihalcea.spring.repository.HibernateRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-types-60 Show documentation
Show all versions of hibernate-types-60 Show documentation
Hibernate ORM 6.0 extra Types
package com.vladmihalcea.spring.repository;
import java.util.List;
/**
* @author Vlad Mihalcea
*/
public interface HibernateRepository {
//Save methods will trigger an UnsupportedOperationException
@Deprecated
S save(S entity);
@Deprecated
List saveAll(Iterable entities);
@Deprecated
S saveAndFlush(S entity);
@Deprecated
List saveAllAndFlush(Iterable entities);
//Persist methods are meant to save newly created entities
S persist(S entity);
S persistAndFlush(S entity);
List persistAll(Iterable entities);
List peristAllAndFlush(Iterable entities);
//Merge methods are meant to propagate detached entity state changes
//if they are really needed
S merge(S entity);
S mergeAndFlush(S entity);
List mergeAll(Iterable entities);
List mergeAllAndFlush(Iterable entities);
//Update methods are meant to force the detached entity state changes
S update(S entity);
S updateAndFlush(S entity);
List updateAll(Iterable entities);
List updateAllAndFlush(Iterable entities);
}