bkenn
02/13/2018, 8:29 PMCaused by: java.lang.IllegalArgumentException: Not a managed type: class com.github.bkenn.jpafx.model.Vendor
exception.nfrankel
02/13/2018, 8:33 PMbkenn
02/13/2018, 8:45 PMval idProperty = SimpleIntegerProperty()
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
var id by idProperty
TornadoFX provides a delegated property for JavaFX Properties. So when you set the id
value it is delegated to the idProperty
value. However, Hibernate is still interpreting the id as IntegerProperty and not Int. Thus, me trying to work around the annotation approach.nfrankel
02/13/2018, 8:48 PMbkenn
02/13/2018, 8:48 PMthelgis
02/13/2018, 8:58 PMspring.jpa.mapping-resources
and not under hibernate that you mention in your first message. Maybe it is worth trying it? Let me know if it helped.thelgis
02/13/2018, 9:17 PMbkenn
02/13/2018, 9:32 PMspring.jpa-mapping-resources
. Here is a bare example https://github.com/bkenn/JpaBootFX. I just tried with the annotation approach in plain java and it does run and save entities. So this may be a Kotlin-Hibernate related issue.thelgis
02/13/2018, 9:44 PMbkenn
02/13/2018, 9:45 PMbkenn
02/13/2018, 10:37 PMspring.jpa-mapping-resources
doesn't exist in 1.5.*. 🎉🎉thelgis
02/13/2018, 10:51 PM