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:

  1. readonly entity included in 2 type of mapping @ not readyonly in 1 of type.
  2. readonly entity inserted database without use of jpa.
  3. 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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -