// Path: spring-boot-oauth-authorization-server/src/main/java/com/sdcuike/practice/domain/Address.java
// @Data
// @NoArgsConstructor
// public class Address {
//     private Long addrId;
//     
//     private String street;
//     
//     private String city;
//     
//     private String state;
//     
//     private String zip;
//     
//     private String country;
//     
//     public static void main(String[] args) throws InterruptedException {
//         CompletableFuture.supplyAsync(()-> {
//             try {
//                 TimeUnit.SECONDS.sleep(5);
//             } catch (InterruptedException e) {
//                 e.printStackTrace();
//             }
//             System.out.println(Thread.currentThread().getName());
//             return  8;
//         }).thenApplyAsync( t -> {
//             System.out.println(Thread.currentThread().getName());
//             return  t*t;
//         })
//         .thenAccept(t ->{
//             System.out.println(Thread.currentThread().getName());
//             System.out.println(t);
//         });
//         
//         System.out.println("main");
//         TimeUnit.HOURS.sleep(1L);
//     }
//     
//     
// }


import com.sdcuike.practice.domain.Address;
import org.mapstruct.Mapper;
package com.sdcuike.practice.domain.dto;


/**
 * Created by beaver on 2017/5/2.
 */
@Mapper
public interface AddressDtoMapper {
    
// Path: spring-boot-oauth-authorization-server/src/main/java/com/sdcuike/practice/domain/Address.java
// @Data
// @NoArgsConstructor
// public class Address {
//     private Long addrId;
//     
//     private String street;
//     
//     private String city;
//     
//     private String state;
//     
//     private String zip;
//     
//     private String country;
//     
//     public static void main(String[] args) throws InterruptedException {
//         CompletableFuture.supplyAsync(()-> {
//             try {
//                 TimeUnit.SECONDS.sleep(5);
//             } catch (InterruptedException e) {
//                 e.printStackTrace();
//             }
//             System.out.println(Thread.currentThread().getName());
//             return  8;
//         }).thenApplyAsync( t -> {
//             System.out.println(Thread.currentThread().getName());
//             return  t*t;
//         })
//         .thenAccept(t ->{
//             System.out.println(Thread.currentThread().getName());
//             System.out.println(t);
//         });
//         
//         System.out.println("main");
//         TimeUnit.HOURS.sleep(1L);
//     }
//     
//     
// }


// Path: spring-boot-oauth-authorization-server/src/main/java/com/sdcuike/practice/domain/dto/AddressDtoMapper.java
import com.sdcuike.practice.domain.Address;
import org.mapstruct.Mapper;

package com.sdcuike.practice.domain.dto;


/**
 * Created by beaver on 2017/5/2.
 */
@Mapper
public interface AddressDtoMapper {
    
    AddressDto address2Dto(Address address);