Baeldung/kotlin-tutorials

Person entity default constructor

Closed this issue · 4 comments

I see that in your example for JPA the person object is created using an ID of 0. I thought that with the jpa plugin we can create person using no-arg constructor Person() and then set the other properties except for ID. Please clarify if providing default ID's at object creation time is the only way to work with Kotlin & JPA?

Hi @syeds-git,
Can you please clarify which article you're referring to?

We fixed the code and updated the article.

Thank you @kwoyke :)