[go: up one dir, main page]

Skip to content

namjug-kim/functional-transaction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

functional-transaction

How to use

public void transactionExample() {
    Transaction.create(() -> {
                    UserEntity userEntity = new UserEntity();
                    userEntity.setId(1L);
                    userEntity.setUserName("테스트유저");
                    return userRepository.save(userEntity);
                })
                .execute(transactionManager, Propagation.REQUIRES_NEW);
}

About

transaction monadic container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages