Skip to content

Commit 9a37b0c

Browse files
Named native queries and Spring projections
1 parent 2784e64 commit 9a37b0c

File tree

1 file changed

+1
-1
lines changed
  • HibernateSpringBootDtoSpringProjectionOrmXmlNamedNativeQuery

1 file changed

+1
-1
lines changed

HibernateSpringBootDtoSpringProjectionOrmXmlNamedNativeQuery/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
**[How To Use JPA Named Native Queries Via `orm.xml` File And Spring Projection (DTO)](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootDtoSpringProjectionOrmXmlNamedNativeQuery)**
22

3-
**Description:** This application is an example of combining JPA named native queries listed in `orm.xml` file and Spring projections (DTO). For queries names we use the `{EntityName}.{RepositoryMethodName}` naming convention. This convention allows us to create in the repository interface methods with the same name as of named query.
3+
**Description:** This application is an example of combining JPA named native queries listed in `orm.xml` file and Spring projections (DTO). For queries names we use the `{EntityName}.{RepositoryMethodName}` naming convention. This convention allows us to create in the repository interface methods with the same name as of named native query.
44

55
**Key points:**
66
- define the named native queries in `orm.xml` file in a folder named `META-INF` the application classpath

0 commit comments

Comments
 (0)