围绕查找器方法启动事务是否明智:
@Transactional
public E getParticularEvent(final String id) {
return (E)em.find(carClass, id);
}
应该这样做吗?
围绕查找器方法启动事务是否明智:
@Transactional
public E getParticularEvent(final String id) {
return (E)em.find(carClass, id);
}
应该这样做吗?