jimmer
jimmer copied to clipboard
A revolutionary ORM framework for both java and kotlin.
 
Hibernate Validator是为pojo设计的,无法很好地处理unloaded,我发现了 org.hibernate.validator.engine.HibernateValidatorEnhancedBean这个接口: Hibernate Validator specific marker interface. Beans implementing this interface would use corresponding $$_hibernateValidator_getFieldValue(String) and $$_hibernateValidator_getGetterValue(String) methods to retrieve bean property values instead of using reflection or any...
当接口被上游转发时,会导致openapi.html找不到openapi.yml,请考虑生产环境下路径会被转的场景 
递归查询时,`FETCHER`中指定`createTime`字段不进行查询输出 ```kotlin val RECURSIVE_FETCHER = newFetcher(SystemPermission::class).by { allScalarFields() createTime(false) updateTime(false) `children*` { depth(10) recursive { entity.enabled } } } ``` 期望结果:所有元素均不输出`createTime` 实际结果:只有根元素不输出`createTime`,但是递归`children`时输出`createTime` ```diff [ { "id": 3, "name": "系统管理", "permission":...
将 RestController 和ResponseBody 的Dto写在一个文件中,会导致这个接口不在openApi上展示出来 
设置字段的`ScalarProvider`  以表为单位查询时,是正常的 ```kotlin fun findParamsById(id: Int): List { return sql .createQuery(ScanDimension::class) { where(table.id eq id) select(table) // table.fetchBy { params() } } .fetchOne() .params } ``` 直接以字段为单位查询,就会报错“找不到`ScanDimension.params`对应的`ScalarProvider`” ```kotlin fun...
Was checking for a different library to start a `GraphQL` project and avoid the usual over-fetching / under-fetching problem at the database layer, and I found `Jimmer`. Looks like there...
jimmer client现在不支持文件下载希望支持,有个注意点:业务上可能需要取得后台返回的文件名(通常在相应头中设置,考虑下怎么处理)
如:在保存bookstore时,会把其他bookstore相同name、edition相同的book抢夺过来。 1.长关联保存的子对象,一般是不可移交的 2.开发人员可能疏忽,忘记在多对一的关联上加@Key会导致此问题 3.此问题发生全程无感,难以察觉
如官网文档中的例子: ```kotlin @Embeddable interface FullName { val firstName: String val lastName: String } ``` ```kotlin @Entity interface Author { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) val id: Long val name: FullName }...