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

com.zengtengpeng.demo.Demo2OneToOne Maven / Gradle / Ivy

There is a newer version: 2.1.6
Show newest version
package com.zengtengpeng.demo;


import com.zengtengpeng.autoCode.StartCode;
import com.zengtengpeng.relation.utils.RelationUtils;

/**
 * 一对一生成实例 test_user 一个用户 对应 test_class 一个班级
 */
public class Demo2OneToOne {
    public static void main(String[] args) {

        //普通写法
//        RelationUtils.oneToOne(StartCode.saxYaml(), new StartCode() {
//            @Override
//            public void custom(AutoCodeConfig autoCodeConfig) {
//
//            }
//        }, new BuildOneToOne() {
//            @Override
//            public void custom(AutoCodeConfig autoCodeConfig) {
//
//            }
//        });

        //lambda表达式写法 二选一
        RelationUtils.oneToOne(StartCode.saxYaml("auto-code_one-to-one.yaml"), t->{}, rt -> {});
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy