-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed errors in mono-to-poly and poly-to-mono mapping
- Loading branch information
1 parent
9cb694c
commit 6fad2e8
Showing
14 changed files
with
250 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...dformat/src/test/java/gutta/apievolution/fixedformat/consumer/ConsumerMonoToPolyType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package gutta.apievolution.fixedformat.consumer; | ||
|
||
public class ConsumerMonoToPolyType { | ||
|
||
private Integer field1; | ||
|
||
public Integer getField1() { | ||
return this.field1; | ||
} | ||
|
||
public void setField1(Integer field1) { | ||
this.field1 = field1; | ||
} | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...mat/src/test/java/gutta/apievolution/fixedformat/provider/ProviderMonoToPolySubTypeA.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package gutta.apievolution.fixedformat.provider; | ||
|
||
import gutta.apievolution.fixedformat.objectmapping.TypeId; | ||
|
||
@TypeId(4) | ||
public class ProviderMonoToPolySubTypeA extends ProviderMonoToPolyType { | ||
|
||
private Integer field2; | ||
|
||
public Integer getField2() { | ||
return this.field2; | ||
} | ||
|
||
public void setField2(Integer field2) { | ||
this.field2 = field2; | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...mat/src/test/java/gutta/apievolution/fixedformat/provider/ProviderMonoToPolySubTypeB.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package gutta.apievolution.fixedformat.provider; | ||
|
||
import gutta.apievolution.fixedformat.objectmapping.MaxLength; | ||
import gutta.apievolution.fixedformat.objectmapping.TypeId; | ||
|
||
@TypeId(5) | ||
public class ProviderMonoToPolySubTypeB extends ProviderMonoToPolyType { | ||
|
||
@MaxLength(10) | ||
private String field3; | ||
|
||
public String getField3() { | ||
return this.field3; | ||
} | ||
|
||
public void setField3(String field3) { | ||
this.field3 = field3; | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...dformat/src/test/java/gutta/apievolution/fixedformat/provider/ProviderMonoToPolyType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package gutta.apievolution.fixedformat.provider; | ||
|
||
import gutta.apievolution.fixedformat.objectmapping.SubTypes; | ||
import gutta.apievolution.fixedformat.objectmapping.TypeId; | ||
|
||
@TypeId(3) | ||
@SubTypes({ProviderMonoToPolySubTypeA.class, ProviderMonoToPolySubTypeB.class}) | ||
public class ProviderMonoToPolyType { | ||
|
||
private Integer field1; | ||
|
||
public Integer getField1() { | ||
return this.field1; | ||
} | ||
|
||
public void setField1(Integer field1) { | ||
this.field1 = field1; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters