• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to update child table data using parent reference in eclipselink?  RSS feed

 
kamesh vadam
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
private Integer space;

@OneToMany(mappedBy = "userid",cascade = CascadeType.PERSIST)
private Collection<Externalstoragecredentials> externalstoragecredentialsCollection;

this is parent entity

@JoinColumn(name = "userid", referencedColumnName = "id")
@ManyToOne(cascade = CascadeType.PERSIST)
private Dpatchuser userid;

this is child entity

can you give named query to update child table data.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!