1. First Case 1: association (1:1 Relation) - Nested Select
ex) User (1) - Information(1)
first query execute and association query execute.
check under log console image file.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
1. User.java
public class User {
// memberes...
Information information;
// setter, getter....
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
2. Mapper.xml description relation.


2. First Case 2: association (1:1 Relation) - Nested Select
ex) User (1) - Information(1)
join query execute and onestop set resultmap.
check under log console image file.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
1. User.java
public class User {
// memberes...
Information information;
// setter, getter....
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
2. Mapper.xml description relation.


3. Second Case 1: collection (1:N Relation) - Nested Select
ex) User (1) - Information(N)
first query execute and collection query execute.
check under log console image file.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
1. User.java
public class User {
// memberes...
List information;
// setter, getter....
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
2. Mapper.xml description relation.


4. Second Case 2: collection (1:N Relation) - Nested Select
ex) User (1) - Information(N)
join query execute and onestop set resultmap.
check under log console image file.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
1. User.java
public class User {
// memberes...
List information;
// setter, getter....
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
2. Mapper.xml description relation.

