Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

transient fields and entityManager.refresh  RSS feed

 
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?
 
I'm not sure if I approve of this interruption. But this tiny ad checks out:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!