Вопрос по spring, java – Как использовать @Transactional со Spring Data?

62

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded@TransactionalError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded@TransactionalError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

@Transactional
public List listStudentsBySchool(long id) {
    return repository.findByClasses_School_Id(id);
}

Error: User Rate Limit Exceeded

public List listStudentsBySchool(long id) {
    return repository.findByClasses_School_Id(id);
}

Error: User Rate Limit Exceeded

Ваш Ответ

3   ответа
2

@Repository

@RepositoryDataAccessException

Error: User Rate Limit Exceeded
111

@Repository@Transactional.

@Repository

@TransactionalSimpleJpaRepository@Transactional.

findAll()findOne(…)@Transactional(readOnly = true)FlushModeMANUALEntityManager

@Transactional(readOnly = true)@Transactional

Error: User Rate Limit Exceeded Byron Voorbach
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded@Transactional(readOnly = true)Error: User Rate Limit Exceeded@TransactionalError: User Rate Limit ExceededSimpleJpaRepositoy.
Error: User Rate Limit Exceededibm.com/developerworks/java/library/j-ts1/index.html#listing8Error: User Rate Limit Exceeded"The bottom line is that when you use an ORM-based framework, the read-only flag is quite useless and in most cases is ignored. But if you still insist on using it, always set the propagation mode to SUPPORTS"Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
3

Error: User Rate Limit Exceededdeveloper.ibm.com/articles/j-ts1

Похожие вопросы