Skip to content

Commit

Permalink
Updated readme and added Gif
Browse files Browse the repository at this point in the history
  • Loading branch information
VISHNUVISHAL11 committed Jan 4, 2023
1 parent b53c0d3 commit 3fe7ab7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 30 deletions.
Binary file added Documents/Mapstruct.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 3 additions & 28 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,7 @@ Import the downloaded jar from disk. <br>

### How to Use The Plugin
- Select the xml code.
- press *Shift + `* shortcut On Xml , then code generated is on your clipboard.
- press *Shift + `* shortcut and provide the details.
- Code will be generated at the specified location.

> Note : works for following xml Structure only . Replace *source*, *destination* and *classname* accordingly.
```xml
<mapping>
<class-a> classname </class-a>
<class-b> classname </class-b>
<field>
<a>source 1</a>
<b>destination 1</b>
</field>
.... //any number of fields
<field>
<a>source n</a>
<b>destination n</b>
</field>

<field-exclude>
<a>source 1</a>
<b>destination 1</b>
</field-exclude>
.... //any number of field-excludes
<field-exclude>
<a>source n</a>
<b>destination n</b>
</field-exclude>
</mapping>
```
![GIF](Documents/Mapstruct.gif "GIF")
2 changes: 0 additions & 2 deletions src/main/java/com/techconative/actions/test/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@


import com.techconative.actions.service.GenerateMappings;
import com.techconative.actions.utilities.Utilities;

import java.io.IOException;

public class Test {
public static void main(String[] args) throws IOException {
System.out.println(Utilities.findAndApply("FieldMap"));
Test test=new Test();
test.run();
}
Expand Down

0 comments on commit 3fe7ab7

Please sign in to comment.