java - How readonly entity get persisted for the first time -
if readonly entity cannot persisted , how persisted first time. thinking in matter lead me 3 choice persist of readonly entity:
- readonly entity included in 2 type of mapping @ not readyonly in 1 of type.
- readonly entity inserted database without use of jpa.
- legacy database
what want know there other choice? first choice legal @ part of users/system can insert readyonly entity (configuration example) , major part of users read entity?
is first choice legal @ part of users/system can insert readyonly entity (configuration example) , major part of users read entity?
you can need in application, there no restriction on how many entities can map same table. have adjust cache usage account changes made in 1 entity not being shown or picked other entity caches until entities refreshed/reloaded.i.e.you need way cause other users see configuration changes. holds true different entities mapping same table data multiple instances of same jpa application though.
Comments
Post a Comment