-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Embedding an Entity. How does this work.
PostPosted: Mon Oct 04, 2010 2:02 pm 
Beginner
Beginner

Joined: Tue Mar 15, 2005 5:04 am
Posts: 26
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


Top
 Profile  
 
 Post subject: Re: Embedding an Entity. How does this work.
PostPosted: Wed Oct 13, 2010 5:30 am 
Newbie

Joined: Tue Oct 12, 2010 4:05 am
Posts: 2
Hi,

I am also having same scenario like you. I am also embedding in embedded class and getting org.hibernate.PropertyNotFoundException: field [aaaa]. Can you tell me how you solved that issue.

Thanks.


Top
 Profile  
 
 Post subject: Re: Embedding an Entity. How does this work.
PostPosted: Wed Oct 13, 2010 5:38 am 
Beginner
Beginner

Joined: Tue Mar 15, 2005 5:04 am
Posts: 26
Unfortunately I have not solved this problem yet. Having one Entity being embedded and therfore creating
a controled redundancy in a second table does not work for me yet :-/

Still hoping for someone prividing a solid solution. Sorry.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.