com.jingshouyan.bean.ForeignDO Maven / Gradle / Ivy
The newest version!
package com.jingshouyan.bean;
import com.github.jingshouyan.jdbc.comm.annotation.Foreign;
import com.github.jingshouyan.jdbc.comm.annotation.Key;
import com.github.jingshouyan.jdbc.comm.entity.BaseDO;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* @author jingshouyan
* #date 2019/3/7 14:51
*/
@Data
public class ForeignDO extends BaseDO {
@Key
String id;
String userId;
@Foreign(thisKey = "userId", thatKey = "id")
List users;
@Foreign(thisKey = "userId", thatKey = "id")
ArrayList u2;
@Foreign(thisKey = "userId", thatKey = "id")
UserDO u;
}