Skip to main content
summaryrefslogtreecommitdiffstats
blob: fa5bebb72cff09f8f4aac158cc3c0f753e0bdce4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.cache-usage" value="CheckCacheOnly"/>
    </named-query>
    <entity class="model.Order">
        <cache type="FULL"/>
    </entity>
    <entity class="model.OrderLine">
        <cache type="FULL"/>
    </entity>
    <entity class="model.Customer">
        <cache type="FULL"/>
    </entity>

</entity-mappings>

Back to the top