Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Who controls that one entity instance belongs to one persistence context?  RSS feed

 
Ranch Hand
Posts: 1714
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the free examclouds mock exam, there is a question asking "who controls the a managed entity belongs to one persistence context?"
The answer is application.

I think the answer is correct is application managed entity manager is used.
But if the container managed entity manager is used, I think the container controls that.
Any comments?
 
Creator of Enthuware JWS+ V6
Posts: 3241
283
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

But if the container managed entity manager is used, I think the container controls that.  


No, it is still the application that controls that.

3.2.8 Managed Instances
It is the responsibility of the application to insure that an instance is managed in only a single persistence context. The behavior is undefined if the same Java instance is made managed in more than one persistence context.

 
Seriously? That's what you're going with? I prefer this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!