1 package fr.ifremer.quadrige3.core.dao.administration.program;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 import org.hibernate.SessionFactory;
26 import org.springframework.beans.factory.annotation.Autowired;
27 import org.springframework.context.annotation.Lazy;
28 import org.springframework.stereotype.Repository;
29
30
31
32
33
34
35
36
37 @Repository("programPrivilegeDao")
38 @Lazy
39 public class ProgramPrivilegeDaoImpl
40 extends ProgramPrivilegeDaoBase
41 {
42
43
44
45
46
47
48 @Autowired
49 public ProgramPrivilegeDaoImpl(SessionFactory sessionFactory) {
50 super();
51 setSessionFactory(sessionFactory);
52 }
53
54
55 public void toProgramPrivilegeIds(
56 ProgramPrivilege source,
57 ProgramPrivilegeIds target)
58 {
59
60 super.toProgramPrivilegeIds(source, target);
61 }
62
63
64 public ProgramPrivilegeIds toProgramPrivilegeIds(final ProgramPrivilege entity)
65 {
66
67 return super.toProgramPrivilegeIds(entity);
68 }
69
70
71
72
73
74
75 private ProgramPrivilege loadProgramPrivilegeFromProgramPrivilegeIds(ProgramPrivilegeIds programPrivilegeIds)
76 {
77
78 throw new UnsupportedOperationException(
79 "fr.ifremer.quadrige3.core.dao.administration.program.loadProgramPrivilegeFromProgramPrivilegeIds(ProgramPrivilegeIds) not yet implemented.");
80
81
82
83
84
85
86
87
88
89
90 }
91
92
93 public ProgramPrivilege programPrivilegeIdsToEntity(ProgramPrivilegeIds programPrivilegeIds)
94 {
95
96 ProgramPrivilege entity = this.loadProgramPrivilegeFromProgramPrivilegeIds(programPrivilegeIds);
97 this.programPrivilegeIdsToEntity(programPrivilegeIds, entity, true);
98 return entity;
99 }
100
101
102 @Override
103 public void programPrivilegeIdsToEntity(
104 ProgramPrivilegeIds source,
105 ProgramPrivilege target,
106 boolean copyIfNull)
107 {
108
109 super.programPrivilegeIdsToEntity(source, target, copyIfNull);
110 }
111 }