Comments (2)
That API cannot work
If "page" is not loaded, you cannot access it.
The current usage has no problems, these method is used by the framework itself or other upper level frameworks:
If user want to use it directly, do it like this.
Java
private static final NAME = ImmutableProps.get(TreeNodeTable.class, TreeNodeTable::name);
private static final CHILD_NODES = ImmutableProps.join(TreeNodeTableEx::class, TreeNodeTableEx::childNodes);
public void f(TreeNode treeNode) {
boolean namedLoaded = ImmtableObjects.isLoaded(treeNode, NAME.getId());
boolean childNodesLoaded = ImmutabeObjects.isLoaded(treeNode, CHILD_NODES.getId());
}
Kotlin
private val NAME = TreeNode::name.toImmutableProp()
private val CHILD_NODES = TreeNode::childNames.toImmutableProp()
fun f(treeNode: TreeNode) {
val namedLoaded = ImmutableObjects.isLoaded(treeNode, NAME.getId());
val childNodesLoaded = ImmutableObjects.isLoaded(treeNode, CHILD_NODES.getId());
}
Next, I will add the third method: isLoaded(Object, ImmutableProp), you can do it like this
ImmutableObjects.isLoaded(treeNode, NAME);
from jimmer.
0.2.5 added third method
from jimmer.
Related Issues (20)
- [BUG] API generate fail because kotlin.ByteArray
- 新版本idea增量编译报错 HOT 1
- [BUG] DTO 在 main 和 test 中编译了两次 HOT 2
- [BUG] unsafe input 中为原 nullable 字段标注'!'后,生成的 dto 的对应属性依然为 nullable HOT 1
- 最新版本编译报错 HOT 4
- 异常簇问题 HOT 1
- 复合字段导致specification报错 HOT 1
- IDEA: Cannot resolve configuration property `jimmer.client.openapi.properties` HOT 2
- [KSP] Incompatibility with micronaut ksp processor HOT 5
- 复合字段的ts可空性不对 HOT 1
- [Feature Request] Support sql array types
- 多模块项目下,dto代码生成出错 HOT 3
- Having issues with SqlClient while messing with Cache HOT 2
- 启用`org.gradle.caching=true`后,dto文件变化后不会重新编译 HOT 1
- 希望 openapi 文档可以定制统一的请求前缀,比如 `/api`
- 伪外键一对多删除报错提示:class org.babyfish.jimmer.sql.meta.MiddleTable cannot be cast to class org.babyfish.jimmer.sql.meta.ColumnDefinition (org.babyfish.jimmer.sql.meta.MiddleTable and org.babyfish.jimmer.sql.meta.ColumnDefinition are in unnamed module of loader 'app') HOT 1
- [Feature Request] Annotations in the dto language whose arguments do not support the class type of kotlin
- [Bug] When using a reverse join table as a condition in an update statement under a postgresql database, there is sometimes an extra comma at the end of the from table list in the generated sql HOT 3
- [Feature Request] Entity merge HOT 1
- 接口方法返回值中有`kotlin.Noting`类型时,jimmer生成接口文档出错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jimmer.