forked from mybatis/mybatis-3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mybatis#101: Keep track of pending creations that were set as propert…
…y mappings - We check for the existence of these (and build them if needed) before returning the final object - Fixes `testImmutableNestedObjects()`
- Loading branch information
1 parent
a01b27e
commit e163a91
Showing
8 changed files
with
102 additions
and
16 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
25 changes: 25 additions & 0 deletions
25
src/test/java/org/apache/ibatis/submitted/collection_injection/immutable/HousePortfolio.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,25 @@ | ||
package org.apache.ibatis.submitted.collection_injection.immutable; | ||
|
||
import java.util.List; | ||
|
||
public class HousePortfolio { | ||
|
||
private int portfolioId; | ||
private List<ImmutableHouse> houses; | ||
|
||
public int getPortfolioId() { | ||
return portfolioId; | ||
} | ||
|
||
public void setPortfolioId(int portfolioId) { | ||
this.portfolioId = portfolioId; | ||
} | ||
|
||
public List<ImmutableHouse> getHouses() { | ||
return houses; | ||
} | ||
|
||
public void setHouses(List<ImmutableHouse> houses) { | ||
this.houses = houses; | ||
} | ||
} |
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