Search within Java in General
Register / Login
Win a copy of
Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams
this week in the
Agile and Other Processes
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Java in General
How to update child table data using parent reference in eclipselink?
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
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.
Let me tell you a story about a man named Jed. He made this tiny ad:
a bit of art, as a gift, the permaculture playing cards
Boost this thread!
Entity object not getting persisted: new object was found through a relationship that was not marked
Cascade Type problem
make a entity class rows read-only in JPA
Saving database records problem
JPA: Cascade delete for join tables with composite key