Update migration-guide.adoc
This commit is contained in:
parent
92e8436014
commit
da05181c3a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue