How to Specify t the property or field is not persistent?
Issue
- How to Specify the property or field is
not
persistent
? JPA
automatic updates- On our Fuse services, we are using
JPA
to deal with persistence and retrieval. By default when we set a property on aJPA Entity
aninsert/update
will be done on flush or commit - The Sample Project has the following logic:
- Obtain an
EntityA
using aentityManager
with is composed by Integer Id, IntegerfiscalNumber
andEntityB
entity. - We call an external service to get
EntityB
.
- Obtain an
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.