From version 2.1
edited by Vladyslav Pavlov
on 2018/03/25 19:16
To version 3.1
edited by Denis Pavlov
on 2018/03/26 13:04
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.vpavlov
1 +xwiki:XWiki.dpavlov
Content
... ... @@ -23,8 +23,7 @@
23 23  To integrate GeDA with your Spring 3 project you will need the following two modules:
24 24  
25 25  (((
26 -{{code language="java"}}
27 -
26 +{{code language="xml"}}
28 28  <!-- core module: use can you it on its own if you are not using Spring 3 -->
29 29  <dependency>
30 30   <groupId>com.inspire-software.lib.dto.geda</groupId>
... ... @@ -49,8 +49,6 @@
49 49  
50 50  (((
51 51  {{code language="XML"}}
52 -
53 -<?xml version="1.0" encoding="UTF-8"?>
54 54  <!--
55 55   ~ This code is distributed under The GNU Lesser General Public License (LGPLv3)
56 56   ~ Please visit GNU site for LGPLv3 http://www.gnu.org/copyleft/lesser.html
... ... @@ -134,7 +134,6 @@
134 134  
135 135  (((
136 136  {{code language="java"}}
137 -
138 138  package com.inspiresoftware.lib.dto.geda.test;
139 139  
140 140  public interface TestXmlService {
... ... @@ -149,7 +149,6 @@
149 149  
150 150  (((
151 151  {{code language="java"}}
152 -
153 153  package com.inspiresoftware.lib.dto.geda.test.impl;
154 154  
155 155  import com.inspiresoftware.lib.dto.geda.DTOSupport;
... ... @@ -179,15 +179,14 @@
179 179  
180 180  |(% style="color:#337ab7" %){{icon name="info-circle"/}} This example assumes that objects passed as dto's are valid instances of @Dto annotated or DSL classes.
181 181  
182 -== Event listeners ==
177 +== Event listeners ==
183 183  
184 184  So for each of the above examples (given the above spring config) event listeners will fire before and after //__each transfer from/to dto object and entity object__//.
185 185  
186 186  (((
187 187  {{code language="java"}}
183 +public class CountingEventListener implements DTOCountingEventListener, BeanNameAware {
188 188  
189 - public class CountingEventListener implements DTOCountingEventListener, BeanNameAware {
190 -
191 191   private static final Logger LOG = LoggerFactory.getLogger(CountingEventListener.class);
192 192  
193 193   private int count = 0;
... ... @@ -226,8 +226,7 @@
226 226  **txProxyTemplate**
227 227  
228 228  (((
229 -{{code language="java"}}
230 -
223 +{{code language="xml"}}
231 231   <bean id="authUserRepository" parent="txProxyTemplate">
232 232   <property name="target">
233 233   <bean class="com.inspiresoftware.erp.security.locator.impl.LoggedInUserRepositoryImpl">
GeDA - Generic DTO Assembler © Denys Pavlov 2009 - 2019
v.1.0.0