remymumoh

Untitled

Nov 17th, 2020
371
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Configuration
  2. public class WebMvcConfig extends WebMvcConfigurerAdapter
  3. {
  4.     @Bean
  5.     @Primary
  6.     public OpenEntityManagerInViewFilter ordersOpenEntityManagerInViewFilter()
  7.     {
  8.         OpenEntityManagerInViewFilter osivFilter = new OpenEntityManagerInViewFilter();
  9.         osivFilter.setEntityManagerFactoryBeanName("ordersEntityManagerFactory");
  10.         return osivFilter;
  11.     }
  12.  
  13.     @Bean
  14.     public OpenEntityManagerInViewFilter securityOpenEntityManagerInViewFilter()
  15.     {
  16.         OpenEntityManagerInViewFilter osivFilter = new OpenEntityManagerInViewFilter();
  17.         osivFilter.setEntityManagerFactoryBeanName("securityEntityManagerFactory");
  18.         return osivFilter;
  19.     }
  20.  
  21.     @Bean
  22.     public OpenEntityManagerInViewFilter baisvOpenEntityManagerInViewFilter()
  23.     {
  24.         OpenEntityManagerInViewFilter osivFilter = new OpenEntityManagerInViewFilter();
  25.         osivFilter.setEntityManagerFactoryBeanName("baisvEntityManagerFactory");
  26.         return osivFilter;
  27.     }
  28.     @Bean
  29.     public OpenEntityManagerInViewFilter zamphiaOpenEntityManagerInViewFilter()
  30.     {
  31.         OpenEntityManagerInViewFilter osivFilter = new OpenEntityManagerInViewFilter();
  32.         osivFilter.setEntityManagerFactoryBeanName("zamphiaEntityManagerFactory");
  33.         return osivFilter;
  34.     }
  35.  
  36. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×