Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Cant prevent transient fields from being copied from shared cache to entity manager instances
Cant prevent transient fields from being copied from shared cache to entity manager instances [message #1783188] Thu, 08 March 2018 22:39 Go to next message
Alexander Roytman is currently offline Alexander RoytmanFriend
Messages: 4
Registered: March 2018
Junior Member
Eclipselink 2.7.1

Fields marked as transient or @Transient are copied from shared cache to entity manager instances despite any of this:

- My class annotated with @InstantiationCopyPolicy
- Internal weaving set to false
- Weaving set to false all together

I resorted to a @PostLoad event to clear transient fields for now but there should be a better solution


[Updated on: Thu, 08 March 2018 23:13]

Report message to a moderator

Re: Cant prevent transient fields from being copied from shared cache to entity manager instances [message #1783605 is a reply to message #1783188] Wed, 14 March 2018 14:45 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1300
Registered: July 2009
Senior Member
This is from https://www.eclipse.org/forums/index.php/m/1783604/#msg_1783604 and it isn't clear what you are doing. It should be easy to show on a simple entity with a field marked @Transient if there is a bug.
Previous Topic:getSingleResult return no entity even if should be return one
Next Topic:Shared Cache produce invalid 1-N elements that are not managed by entity manager
Goto Forum:
  


Current Time: Wed Sep 19 22:49:08 GMT 2018

Powered by FUDForum. Page generated in 0.01268 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top