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

(Kotlin) Can classes be final? #48

Open
egslava opened this issue Jul 14, 2016 · 1 comment
Open

(Kotlin) Can classes be final? #48

egslava opened this issue Jul 14, 2016 · 1 comment

Comments

@egslava
Copy link

egslava commented Jul 14, 2016

Hi!
I'm trying to use your library. Syntax is very comfortable, but it's a bit hard to use with Kotlin language. My code:

data class Player(
    var id: Long? = null,
    var title: String? = null,
    var date: Date? = null
)

In Kotlin you can use data classes. But in this case classes are final. So I can't use data classes:

Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: ru.egslava.db.hbm.Player is final
at org.torpedoquery.jpa.Torpedo.from(Torpedo.java:124)

Is it fixable? :-)

Thank you for the great library! :-)

@xjodoin
Copy link
Owner

xjodoin commented Jul 18, 2016

for now isn't supported but maybe in the future if I replace javassist by bytebuddy

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