1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.core.persistence.jpa;
20
21 import org.apache.syncope.core.persistence.api.dao.SAML2SP4UIIdPDAO;
22 import org.apache.syncope.core.persistence.api.entity.SAML2SP4UIEntityFactory;
23 import org.apache.syncope.core.persistence.jpa.dao.JPASAML2SP4UIIdPDAO;
24 import org.apache.syncope.core.persistence.jpa.entity.JPASAML2SP4UIEntityFactory;
25 import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
26 import org.springframework.context.annotation.Bean;
27 import org.springframework.context.annotation.Configuration;
28
29 @Configuration(proxyBeanMethods = false)
30 public class SAML2SP4UIPersistenceContext {
31
32 @ConditionalOnMissingBean
33 @Bean
34 public SAML2SP4UIEntityFactory saml2SP4UIEntityFactory() {
35 return new JPASAML2SP4UIEntityFactory();
36 }
37
38 @ConditionalOnMissingBean
39 @Bean
40 public SAML2SP4UIIdPDAO saml2SP4UIIdPDAO() {
41 return new JPASAML2SP4UIIdPDAO();
42 }
43 }