Update migration-guide.adoc

This commit is contained in:
Andrea Boriero 2021-11-17 11:06:01 +01:00 committed by Andrea Boriero
parent 92e8436014
commit da05181c3a
1 changed files with 36 additions and 0 deletions

View File

@ -58,6 +58,42 @@ Multiple component mappings for the same java class with different property mapp
Passing null or not is now triggered by whether setting the parameter was called at all. In other ords a distinction is made between calling `setParameter` passing null versus not calling `setParameter` at all. In the first case, we pass along the null value; in the second we do not.
=== Query
=== HQL results
Hql queries that joins an Entity `Person` with an Entity `Address` without specifying a select clause `from Address a join a.address` does not return anymore a `List<Object[]>`but a list of `Person`.
The hql query `select a,ad from Address a join a.address ad` returns instead a `List<Object[]>`.
e.g.
```
@Entity
class Person {
...
@ManyToOne
Address address
...
}
@Entity
class Address {
...
}
List<A> result = session.createQuery("from Address a join a.address").list()
```
==== Iterate
The `Query#iterate()` method has been removed.
=== Native Query
==== Native query as a function call is no longer supported.