#778 - ENH: Add support for loading named queries from ebean.xml

This commit is contained in:
Robin Bygrave committed 2016-07-15 23:33:09 +12:00
1 parent 05eb0bfc55
commit 55584f09d5
8 files changed
+180 -1

No files matched your search

+10
View File
@@ -46,4 +46,14 @@
</raw-sql>
</entity>
<entity class="com.avaje.tests.model.basic.Customer">
<named-query name="withContactsById">
<query>
select (name, version)
fetch contacts (firstName, lastName, email)
where id = :id
</query>
</named-query>
</entity>
</ebean>