Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DAO hibernate/JPA, data missing  RSS feed

assaf aharoni
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 3 classes, PerchaseOrderHeader , PerchaseOrderLines, and ItemCrossReference
My problem accurs when i add the following lines in ItemCrossReference.class and in PerchaseOrderLines.class, just in order to have another level in my objects hierarchy.
private Collection<PerchaseOrderLines> perchaseOrderLinesList;

@JoinColumns( {
@JoinColumn(name = "POL_ORDER_CMP", referencedColumnName = "REF_CUST_CMP_CODE",insertable=false, updatable=false),
@JoinColumn(name = "POL_ITEM_CODE", referencedColumnName = "REF_CUST_REF_CODE",insertable=false, updatable=false) })
private ItemCrossReference itemCrossReference;

my DAO class does not retrieve the object with all the data i have in depth.

please help

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!