• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javax.persistence.CascadeType.REFRESH - meaning of REFRESH ?

 
Ranch Hand
Posts: 182
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Consider the classed Exam (Id, ExamName, Detail_Id) and ExamDetail(Detail_Id, numOfQuestions, maxPoints, isObjective). Exam HAS-A or CONTAINS A ExamDetail.
My book says that REFRESH will refresh the associated property ExamDetail every time Exam is refreshed. What do you mean by refresh ?

Thanks.

 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Refresh means to pull any changes that have been made in the database into your copy of the entity. Suppose you have work that takes a minute to do. Your entity might have gotten stale in that time.
 
reply
    Bookmark Topic Watch Topic
  • New Topic