Use of Strategy: read only in Cache Mappig by R4R Team

If we want to do on own application that need to read only but we can not modify, instance of a persistent class. A read-only cache can be used for this type of implementation to full fill the requirement. This is the simplest and optimal performing strategy. It is even safe for use in a cluster.

<class name="eg.Immutable" mutable="false">
    <cache usage="read-only"/>
    ....
</class>
Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!