MyBatis-Flex-Kotlin 基于 Mybatis-Flex 的 Kotlin 扩展模块,方便 Kotlin 开发者使用 MyBatis-Flex 进行开发。 它继承了 Mybatis-Flex 轻量的特性,同时拥有 Kotlin 特有的扩展方法、中缀表达式与DSL等语法支持, 使其拥有了更高的灵活性。让我们可以更加轻松的在 Kotlin 中使用 MyB
1、应用 Gradle 插件:kotlin-kapt 【Kotlin】 kotlin plugins { // 如果正在使用 SpringBoot,请保持 kapt 插件版本与 Spring 插件、kotlin JVM 插件一致 // 如你的插件版本是(如果项目是使用 Spring Initializr 生成的话,是会自带下面两个插件): // kotlin("jvm") version "1.9.20" <- 注意版本 // kotlin...
MyBatis-Flex-Kotlin MyBatis-Flex 的 Kotlin 扩展。 5 33 9 Mybatis-Flex-Samples Mybatis-Flex 的示例代码仓库 3 70 41 Mybatis-Flex-Admin 9 101 31 mybatis-benchmark Mybatis-Flex 和 Mybatis-Plus 的性能对比 Java 2 18 11 自定义精选项目 ...
Account account=accountMapper.selectOneByQuery(queryWrapper);//查询部分字段,也可以使用Lambda表达式select(QueryColumn("id"), QueryColumn("name"), QueryColumn("category_id")) 2.4. kotlin支持 我同步也有一个Kotlin的项目用的JPA,我也一起改成了flex版本。花了不多时间就改造完成,感觉代码整个都看起来非常...
mybatis-flex-kotlin refactor: move kotlin module to https://gitee.com/mybatis-flex/mybatis… 2年前 mybatis-flex-loveqq-starter opt:update loveqq-framework starter version 3个月前 mybatis-flex-processor build: v1.10.9 release (^.^)YYa!!
kotlin复制代码@Table(value = "tb_idcard") public class IDCard implements Serializable { private Long accountId; private String cardNo; private String content; //getter setter } @RelationOneToOne 配置描述: selfField当前实体类的属性 targetField目标对象的关系实体类的属性 ...
public static final String ENTITY_KOTLIN = "/templates/enjoy/entity.kotlin.tpl"; public static final String MAPPER_KOTLIN = "/templates/enjoy/mapper.kotlin.tpl"; public static final String SERVICE_KOTLIN = "/templates/enjoy/service.kotlin.tpl"; public static final String SERVICE_IMPL_KOTLIN = ...
getName().equals("kotlin.jvm.internal.MutablePropertyReference1Impl")) { try { return (String) arg.getClass().getMethod("getName").invoke(arg); } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException ignored) { } } } return StringUtil.methodToProperty(methodName);...
org.jetbrains.kotlin–Kotlin com.intellij.modules.platform com.intellij.modules.lang com.intellij.modules.java com.intellij.database–Database Tools and SQL for WebStorm Products Supported Products Aqua — build 202.* — 233.* IntelliJ IDEA Ultimate — 2020.3 — 2023.3.8 ...
org.jetbrains.kotlin–Kotlin com.intellij.spring.boot–Spring Boot com.intellij.spring–Spring com.intellij.modules.platform com.intellij.modules.lang +2 more Products Supported Products IntelliJ IDEA Ultimate — 2023.3 — 2024.2.6 Unsupported Products ...