• Post Reply Bookmark Topic Watch Topic
  • New Topic

transient fields and entityManager.refresh

 
nimo frey
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,


I have a entity and within this entity I have transient fields. (@Transient).

When I use entityManager.refresh(entity) or Hibernate.initialize(entity), does it also override the transient fields, or are there kept?

I do not want, that the values of transient fields are set to null after a refresh. Is that the case?
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!