Comments (6)
The second case, did you set the dialect to be H2 or Postgres?
from jimmer.
I set it to Postgres
from jimmer.
You need to add a ScalarProvider
@Component
class Scalar : ScalarProvider<List<Long>, PGobject>() {
override fun toScalar(sqlValue: PGobject): List<Long> {
return ...
}
override fun toSql(scalarValue: List<Long>): PGobject {
return PGobject().apply {
type = "_int8"
value = scalarValue.joinToString(",", "{", "}")
}
}
override fun getHandledProps(): MutableCollection<ImmutableProp> {
return mutableListOf(Guild::appsBlacklist.toImmutableProp())
}
}
from jimmer.
No, in newest version, PostgresDialect can automatically handle array type, without ScalarProvider
from jimmer.
You can use @Column
after the patch release.
@Column(sqlElementType = "bigint")
val appsBlacklist: List<Long>
from jimmer.
Try 0.8.94
from jimmer.
Related Issues (20)
- [Bug] DTO `as` nested, generated fields is different HOT 1
- 这套框架能否实现类似mybatis plus acticerecord模式的效果 HOT 2
- springboot3中dto校验注解报错 HOT 1
- input类型的dto定义是否支持定义属性默认值? HOT 1
- UUID to varchar conversion problem HOT 8
- 如何能在拦截器DraftInterceptor获取到当前操作的表对象的表信息? HOT 1
- DTO equals() does not properly compare arrays HOT 1
- Expression.numeric().sql().in() not work. HOT 1
- DraftInterceptor not being called on update HOT 1
- 单向关联保存时实体设置了IDView的值 insert失败报错 HOT 2
- java: 来自批注处理程序 'org.babyfish.jimmer.apt.JimmerProcessor' 的受支持 source 版本 'RELEASE_8' 低于 -source '21' HOT 3
- [Bug] TS no generate enumerations that are only referenced by fetcher HOT 1
- [BUG] When using annotations on prop in a dto file, if the parameter type of the annotation is class and 'Xxx.class' is used, it will result in a dto generation error HOT 1
- [bug] 升级kotlin与ksp2.0.0之后实体使用default注解编译报错,切换回1.9.23之后正常。 HOT 1
- [Bug] Boolean name starting with 'is' in Entity HOT 1
- [Bug] jackson序列化实体异常 HOT 1
- [BUG] After annotating the documentation for entity-associated property, the dto language generates a class with incorrect documentation for the flat-associated property. HOT 2
- [BUG] In the dto language, after adding document annotations to property, the property document annotations are incorrect in the generated class. HOT 1
- [BUG] The DTO definition uses Jackson's PropertyNamingStrategies, but this annotation is not carried to the generated DTO's internal Builder class
- [BUG] When the document comment of a property in an entity contains something like '@see', the comment in the generated DTO class is missing
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.