All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jingshouyan.bean.ForeignDO Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show 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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy