• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DAO hibernate/JPA, data missing

 
assaf aharoni
Greenhorn
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.
@OneToMany(mappedBy="itemCrossReference")
private Collection<PerchaseOrderLines> perchaseOrderLinesList;

@ManyToOne()
@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





 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic