Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'cache/src/META-INF/read-only.xml')
-rw-r--r--cache/src/META-INF/read-only.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/cache/src/META-INF/read-only.xml b/cache/src/META-INF/read-only.xml
new file mode 100644
index 0000000..49b40af
--- /dev/null
+++ b/cache/src/META-INF/read-only.xml
@@ -0,0 +1,14 @@
+<?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.read-only" value="true"/>
+ </named-query>
+ <entity class="model.Order" read-only="true"/>
+ <entity class="model.OrderLine" read-only="true"/>
+ <entity class="model.Customer" read-only="true"/>
+
+</entity-mappings>

Back to the top