Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsutherla2013-01-03 10:12:24 -0500
committerjsutherla2013-01-03 10:12:24 -0500
commit4d2839e1ebb9b1d9aef95684219cc5eff0404215 (patch)
treee76e7b61d81658eacdfc894a46b47b69914eab99 /cache/src/META-INF/read-only-protected.xml
parent4fba632db5e1b4c27879d54e860ff0c39210462c (diff)
downloadperformance-4d2839e1ebb9b1d9aef95684219cc5eff0404215.tar.gz
performance-4d2839e1ebb9b1d9aef95684219cc5eff0404215.tar.xz
performance-4d2839e1ebb9b1d9aef95684219cc5eff0404215.zip
adds a cache benchmark
Diffstat (limited to 'cache/src/META-INF/read-only-protected.xml')
-rw-r--r--cache/src/META-INF/read-only-protected.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/cache/src/META-INF/read-only-protected.xml b/cache/src/META-INF/read-only-protected.xml
new file mode 100644
index 0000000..ee4022a
--- /dev/null
+++ b/cache/src/META-INF/read-only-protected.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entity-mappings version="2.4"
+ xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+ <named-query name="findOrdersByCustomer">
+ <query>Select o from Order o where o.customer.id = :customerId</query>
+ <hint name="eclipselink.readonly" value="true"/>
+ </named-query>
+ <entity class="model.Order" read-only="true">
+ <cache isolation="PROTECTED"/>
+ </entity>
+ <entity class="model.OrderLine" read-only="true">
+ <cache isolation="PROTECTED"/>
+ </entity>
+ <entity class="model.Customer" read-only="true">
+ <cache isolation="PROTECTED"/>
+ </entity>
+
+</entity-mappings>

Back to the top