Skip to content

Commit 3fe7ab7

Browse files
author
VISHNUVISHAL11
committed
Updated readme and added Gif
1 parent b53c0d3 commit 3fe7ab7

3 files changed

Lines changed: 3 additions & 30 deletions

File tree

Documents/Mapstruct.gif

2.4 MB
Loading

Readme.md

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff 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")

src/main/java/com/techconative/actions/test/Test.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33

44
import com.techconative.actions.service.GenerateMappings;
5-
import com.techconative.actions.utilities.Utilities;
65

76
import java.io.IOException;
87

98
public 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
}

0 commit comments

Comments
 (0)