Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column Convert cause compile error #9

Open
shenliuyang opened this issue May 23, 2020 · 1 comment
Open

Column Convert cause compile error #9

shenliuyang opened this issue May 23, 2020 · 1 comment

Comments

@shenliuyang
Copy link

My entity column

@Convert(converter = StringListConverter::class)
    var permissions: MutableList<String> = mutableListOf()

generated code is

fun Table.role_permissions(columnName: String): Column<MutableList> =
    stringWrapper<MutableList>(columnName, {
    pl.touk.krush.StringListConverter().convertToEntityAttribute(it) }, {
    pl.touk.krush.StringListConverter().convertToDatabaseColumn(it) })

tables.kt: (74, 56): One type argument expected for interface MutableList

@EMH333
Copy link
Contributor

EMH333 commented Aug 6, 2020

I'm running into this issue too. It looks like it happens because of how krush handles converters and their types. It doesn't pay attention to type parameters

data class Type(
val packageName: String,
val simpleName: String
)

This seems fairly straightforward to fix so I may take a shot at it if I have the time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants