Hello,
I am currently trying to embedd an entity into another entity and receive this error:
Code:
Caused by: org.hibernate.PropertyNotFoundException: field [articleId] not found on de.vanilleshop.entities.OrderRow
at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:145)
at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:152)
at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAccessor.java:137)
So what I am trying to do is adding an Article to an OrderRow of an OrderProcess. Though, as an Article may change at some
day, and I want to have a fixed state of that Article within that OrderProcess, I was thinking of embedding it.
I am only finding examples of having either an Entity, or an Embeddable. Is ther not a kind
of mixure possible?
Thanks and regards,
Alexander