Add Hibernate 7 batches 2-6, batch 7, and batch 8: mapping styles, JPA annotations, natural IDs, @Immutable, stored procedures, in-memory test databases, JNDI mocking, proxies, associations, temporal mapping, named queries, HQL, Criteria API, EntityManager bootstrapping, Ehcache 3 L2 cache configuration, HikariCP connection pooling, Hibernate Validator CDI integration, aggregate functions, sorting, pagination, interceptors, and Hibernate Search 8 (Hibernate 7.4.5.Final + Spring Boot 4.1.1 + JDK 25)
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<entity-mappings xmlns="https://jakarta.ee/xml/ns/persistence/orm"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence/orm https://jakarta.ee/xml/ns/persistence/orm/orm_3_2.xsd"
|
||||
version="3.2">
|
||||
|
||||
<!-- Backs ankurm.com post 4877, 14-named-queries.md, chapter Named queries in orm.xml -->
|
||||
|
||||
<named-query name="XmlQueryEmployee.findBySalaryAboveXml">
|
||||
<query>SELECT e FROM XmlQueryEmployee e WHERE e.salary > :min ORDER BY e.salary DESC</query>
|
||||
</named-query>
|
||||
|
||||
<!-- Same name as an annotation on XmlQueryEmployee; orm.xml wins over the annotation. -->
|
||||
<named-query name="XmlQueryEmployee.overridden">
|
||||
<query>SELECT e FROM XmlQueryEmployee e WHERE e.salary > :min</query>
|
||||
</named-query>
|
||||
|
||||
</entity-mappings>
|
||||
Reference in New Issue
Block a user