Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Service
- public class IntegrationService {
- @Autowired
- StockService stockService;
- @Autowired
- SessionFactory sessionFactory
- @Transactional
- public void doSomething() {
- StockIssue issue = stockService.getStockIssue();
- Session s = sessionFactory.openSession();
- s.merge(issue);
- issue.getStockTransactionHeaderBatches();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement