File tree Expand file tree Collapse file tree
src/main/java/com/techconative/actions/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,32 +13,7 @@ Import the downloaded jar from disk. <br>
1313
1414### How to Use The Plugin
1515- Select the xml code.
16- - press * Shift + `* shortcut On Xml , then code generated is on your clipboard.
16+ - press * Shift + `* shortcut and provide the details.
17+ - Code will be generated at the specified location.
1718
18- > Note : works for following xml Structure only . Replace * source* , * destination* and * classname* accordingly.
19-
20- ``` xml
21- <mapping >
22- <class-a > classname </class-a >
23- <class-b > classname </class-b >
24- <field >
25- <a >source 1</a >
26- <b >destination 1</b >
27- </field >
28- .... //any number of fields
29- <field >
30- <a >source n</a >
31- <b >destination n</b >
32- </field >
33-
34- <field-exclude >
35- <a >source 1</a >
36- <b >destination 1</b >
37- </field-exclude >
38- .... //any number of field-excludes
39- <field-exclude >
40- <a >source n</a >
41- <b >destination n</b >
42- </field-exclude >
43- </mapping >
44- ```
19+ ![ GIF] ( Documents/Mapstruct.gif " GIF ")
Original file line number Diff line number Diff line change 22
33
44import com .techconative .actions .service .GenerateMappings ;
5- import com .techconative .actions .utilities .Utilities ;
65
76import java .io .IOException ;
87
98public class Test {
109 public static void main (String [] args ) throws IOException {
11- System .out .println (Utilities .findAndApply ("FieldMap" ));
1210 Test test =new Test ();
1311 test .run ();
1412 }
You can’t perform that action at this time.
0 commit comments